fundContest sends totalRewards to the Pot, and the Pot promises exactly that amount to its players.
With a fee-on-transfer token the Pot receives less than totalRewards, but remainingRewards is still initialised to totalRewards. Claims succeed until the balance runs out, and then the last claimer's transfer reverts.
Likelihood:
When the contest uses a token that takes a fee on transfer (e.g. STA, PAXG, or USDT if its fee is ever enabled). The README restricts compatibility to standard ERC20 tokens, so this is unlikely.
Impact:
The last player(s) to claim cannot receive their reward: the transfer reverts for lack of balance.
The token burns 1% on transfer. The Pot receives 99 instead of 100, and after player1 takes 65 only 34 are left for player2's 35.
Check the amount the Pot actually received, and revert if it is short.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.