claimCut function there is no critical check for validating that the user is claiming before the deadline.Normal behavior- Users can claim their cuts before the deadline and they cannot claim after the deadline of 90 days has passed
Issue - Missing check for the current time of claiming allows users to claim even if the deadline of 90 days has passed.
Likelihood:
It is going to occur anytime a pot's deadline is reached and some users haven't claimed on time but manage to front-run the manager closing the pot.
Impact:
Impact is High. The deadline is being bypassed effectively and the users who claimed on time can miss their additional rewards because non-claimers can claim before the manager closing the pot.
Owner chooses 2 player accounts for rewarding them
First user claims on time
90 days pass and the pot can be closed by the owner and the owner is about to claim his cut and also distribute more rewards to the first claimer since he claimed on time
Second users now claims before the owner closing the pot and effectively bypasses the deadline restriction + no manager cut and no additional rewards for the first claimer
In the Pot contract add a check for validation of the deadline in the claimCut function
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.