The updateStrategyRewards function in the StakingPool contract may inaccurately calculate and distribute rewards and fees when there are abrupt changes in strategy deposits or fee structures. This can lead to incorrect accounting and potential financial discrepancies.
The vulnerability arises from the reliance on dynamic data from strategies without sufficient validation or safeguards against sudden changes. The issue is primarily located in the _updateStrategyRewards function, where it aggregates rewards and fees from multiple strategies.
A strategy experiences a significant change in deposit value due to market volatility or operational adjustments.
The updateStrategyRewards function is called, and the sudden change is not adequately accounted for, leading to incorrect calculations of rewards and fees.
The function distributes rewards and fees based on these inaccurate calculations, resulting in some stakeholders receiving more or less than they are entitled to.
Stakeholders may receive incorrect amounts of rewards or fees, leading to potential financial losses or gains.
Manual review
Implement checks to validate the integrity of data received from strategies before using it in calculations.
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.