The claimAllRewards()
function may run out of gas if a user has a large number of rewards, preventing them from claiming all their rewards in a single transaction.
The claimAllRewards()
function loops through all rewards a user has, which may exceed the block gas limit for users with many rewards:
This could cause the transaction to fail, leaving users unable to claim their rewards.
Users with many rewards may not be able to claim all of their rewards in one transaction due to gas limits, leading to user frustration and unclaimed rewards.
Manual code review
Implement a batched reward claiming system where users can claim rewards in smaller batches across multiple transactions to avoid gas limit issues.
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.