The claimAllRewards function loops through all rewards owned by the user, summing the values and then deleting all rewards at once. If a user has many rewards, this loop could become gas-intensive and lead to transaction failures due to block gas limits.
MysterBox.sol/Line
Users with many rewards may be unable to claim them due to high gas costs or out-of-gas errors.
Foundry
Consider breaking up the claim process to allow users to claim rewards in batches or individually. This reduces gas usage and makes it more flexible for users.
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.