Description Eligible players can claim their reward by calling the claimCut
function. Payers are not allowed to claim their reward post 90 days of pot's deployment. Timely claimers are rewarded with unclaimed tokens left in the pot.
There is no deadline check in claimCut
function, allowing players to claim even after the deadline has passed. This defies the protocols principle, denying early claimer's advantage.
Impact Players can claim their cut from the pot post deadline. Early claimers are denied of their advantage.
Proof of concept
Place the following code in TestMyCut.t.sol
:
Recommended Mitigation Put in a deadline check in the claimCut
function to make sure that players can claim only within the stipulated time interval of 90 days
.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.