MyCut

First Flight #23
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Remaining Rewards Not Updated in `ContestManager::getContestRemainingRewards`

Summary

The remainingRewards variable in the Pot contract is not updated after the final reward distribution, potentially misleading users.

Vulnerability Details

The ContestManager::getContestRemainingRewards function relies on the Pot::getRemainingRewards function. However, the remainingRewards variable is never updated after the final distribution of rewards, which could mislead users into thinking that the contest is still active.

Impact

Users might incorrectly believe that they can still claim rewards, even though all rewards have already been distributed.

Tools Used

Manual code review.

Recommendations

Ensure that the remainingRewards variable is updated appropriately in the Pot::claimCut function after each reward is claimed.

Updates

Lead Judging Commences

equious Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.