In the original implementation, the calculation of virtualRewardsToRemove in StakingRewards#_decreaseUserShare() rounded down in favor of the user, which could result in the last liquidity provider not removing their liquidity due to a lack of SALT reward.
Mitigation
commit b3b8cb9
The calculation of virtualRewardsToRemove in StakingRewards#_decreaseUserShare() rounded up in favor of the protocol in the mitigation.
The original issue was resolved.
Lines of code
Vulnerability details
Comments
In the original implementation, the calculation of
virtualRewardsToRemove
inStakingRewards#_decreaseUserShare()
rounded down in favor of the user, which could result in the last liquidity provider not removing their liquidity due to a lack of SALT reward.Mitigation
commit b3b8cb9 The calculation of
virtualRewardsToRemove
inStakingRewards#_decreaseUserShare()
rounded up in favor of the protocol in the mitigation. The original issue was resolved.Conclusion
Confirmed