The StakingPool contract allows the owner to reorder the strategies used for staking through the reorderStrategies function.
This function does not account for the depositChange of each strategy, which represents the net change in deposits and is used to calculate rewards and fees.
By reordering strategies during certain market conditions (e.g., transitioning from a bull market to a bear market), the owner can unexpectedly manipulate the distribution of withdrawals and deposits among strategies. This issue can disadvantage certain strategies and their contributors, affecting their rewards and fees.
Specifically, moving a strategy with a positive depositChange from the last position to the first can prevent it from being withdrawn from first (since withdrawals are processed in descending order), allowing it to retain positive depositChange while other strategies may have negative depositChange.
The reorderStrategies function allows the contract owner to change the order of strategies arbitrarily without accounting for their current depositChange or the potential impact on rewards and fees as seen below;
So in a bull market scenario where we can say there is demand for the protocol;
The last strategy in the array will receive more deposits, resulting in a positive depositChange. Hence,contributors to this strategy will receive more rewards due to the positive depositChange after this function call.
And when the market shifts to bear market (less demand for the protocol, users are getting out) at the time of call;
Overall deposits decrease, and withdrawals increase, so the strategies in later positions in the array starts experiencing negative depositChange due to withdrawals. Hence, in this condition, contributors in these strategies receive fewer rewards.
Unfair reward distribution
Manual Review
This requires further implementations whether any strategy should be re-ordered or remained.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.