The getReward function is responsible for allowing users to claim their accumulated rewards. However, the function does not enforce a check against the distributionCap, potentially allowing excessive reward claims beyond the intended cap.
The getReward function processes user reward claims but does not verify if the total claimed rewards exceed distributionCap. This could lead to scenarios where the reward distribution surpasses the intended limit, potentially depleting contract funds and causing economic instability in the system.
Relevant code snippet:
Users may claim rewards beyond the intended cap.
The contract may distribute an excessive amount of rewards, depleting funds faster than planned.
Could lead to an economic imbalance within the system.
Manual code review
Introduce a check against distributionCap before transferring rewards.
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.