The `closePot()` function can be called multiple times after the 90-day period has elapsed. While the function checks if `remainingRewards > 0` before executing, there's no explicit state flag to prevent multiple calls. If `remainingRewards` is 0 (all rewards claimed), the function will execute the time check but do nothing. However, there's no protection against calling it repeatedly, which wastes gas and could indicate a design issue.
Additionally, if there are any edge cases where `remainingRewards` becomes non-zero again (though unlikely with current logic), the function could execute multiple times.
Likelihood:
* This occurs when the owner calls `closePot()` multiple times after the 90-day period
* The issue manifests every time the function is called after the initial closure
Impact:
* Unnecessary gas consumption from repeated calls
* No explicit state tracking of whether the pot has been closed
* Potential confusion about pot state
* If logic changes in the future, multiple calls could have unintended consequences
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.