Open c4-submissions opened 1 year ago
thereksfour marked the issue as unmitigated
thereksfour marked the issue as new finding
Updated the labels as requested by CCCZ
getReward() is not called after shutdown, which could lead to incorrect reward accumulation. Consider the simple scenario where Alice is the only depositor.
another 100 reward tokens are generated
will be lost
Lines of code
Vulnerability details
In the previous implementation After shutdown, checkpoints are stopped
reward.reward_integral_for[user]
No updates resulted in new users getting more rewards and possible theft of rewards.Mitigation
PR 930 Modify that
checkpoints
are already executed, just not callIRewardStaking(convexPool).getReward(address(this), true);
the mitigation resolved the original issue.Suggestion
Not calling
convexPool.getReward()
, there is a slight loss of rewards for transferred users the feeling is that there is no need to ignore this call,convexPool.getReward()
don't revert if shutdown