Unallocated tokens remain in the contract forever #103
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate-369
🤖_06_group
AI based duplicate group recommendation
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2024-02-uniswap-foundation/blob/5298812a129f942555466ebaa6ea9a2af4be0ccc/src/UniStaker.sol#L577-L578
Vulnerability details
Impact
There may be undistributed tokens left on the contract balance that will not be taken into account the next time the notifyRewardAmount function is called. They will remain in contract forever.
This can happen in 2 cases:
Proof of Concept
Add this file in test folder
Result:
Tools Used
Manual review
Recommended Mitigation Steps
Assessed type
Other
The text was updated successfully, but these errors were encountered: