The claimReward
function's comment section stated that users who have claimed from the last epoch cannot claim reward again, but this check doesn't work.
Here is claimReward
:
We see from the comments, that if an user have requested a claim, he cannot claim another one, also if he has claimed from the last epoch, he will be denied as well. However, if we look at completeClaimRequest
:
When a request is fulfilled, its entry is deleted, which means there will be no record to tell if the user has claimed reward in the last epoch or not. Thus the enforement is vague.
Users who has claimed last round, can still request a new claim request. Breaking the protocol's invariant.
Manual review
Add a new map to store last user's successful claim, and if user has claimed in the last epoch, revert.
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.