OstiumOpenPnl::average() can be simplified by adding a state variable that tracks the cumulative sum of nextEpochValues
Description
OstiumOpenPnl::average() calculates the average of all the nextEpochValues, which is an expensive operation (depending on requestsCount and could be replaced by a state variable tracking the cummulative sum.
Status
Acknowledged