Users can claim their rewards after the 90-day claim period ends, until the contest is closed by the admin.
The Pot::claimCut
function allows users to claim their rewards. According to the documentation, users have 90 days to do so. If not all users claim their rewards within this period, the remaining pool will be redistributed between the admin and the users who have already claimed their rewards. However, the issue is that users can still claim rewards after the 90-day period, up until the contest is closed by the admin.
The claiming period requirement could be broken.
The user calls the Pot::claimCut
function after the 90-day period has ended and successfully claims their reward.
Add the following code to the TestMyCut.t.sol
file within the TestMyCut
contract.
Manual Review
Foundry
The Pot::claimCut
function should check that the claim period is still active and then process the claim.
Possible solution (changes in Pot.sol
file):
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.