MyCut

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

Tokens can get stuck in the Pot contract

Summary

If remainingRewards - managerCut < i_players.length and remainingRewards < managerCutPercent, tokens will get stuck in the contract because both managerCut and claimantCut will be 0. The maximum balance that can get stuck in the Pot contract is 9.

Impact

Tokens become stuck in the Pot contract.

Recommendations

If remainingRewards - managerCut < i_players.length, transfer all remainingRewards to the manager, because claimants can't receive less than 1 token. After closing the Pot, update the remainingRewards to 0.

Updates

Lead Judging Commences

equious Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Dusty Pot

Support

FAQs

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