This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
0x52 - rewardTokens removed from WAuraPool/WConvexPools will be lost forever #128
Labels
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
Sponsor Confirmed
The sponsor acknowledged this issue is valid
Will Fix
The sponsor confirmed this issue will be fixed
0x52
high
rewardTokens removed from WAuraPool/WConvexPools will be lost forever
Summary
pendingRewards pulls a fresh count of reward tokens each time it is called. This is problematic if reward tokens are ever removed from the the underlying Aura/Convex pools because it means that they will no longer be distributed and will be locked in the contract forever.
Vulnerability Detail
WAuraPools.sol#L166-L189
In the lines above we can see that only tokens that are currently available on the pool. This means that if tokens are removed then they are no longer claimable and will be lost to those entitled to shares.
Impact
Users will lose reward tokens if they are removed
Code Snippet
WAuraPools.sol#L152-L190
Tool used
Manual Review
Recommendation
Reward tokens should be stored with the tokenID so that it can still be paid out even if it the extra rewardToken is removed.
The text was updated successfully, but these errors were encountered: