Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: high
Valid

incorrect totalAmountCollected reverts and lock funds

Summary

When a user requests a refund, the players.length value is not appropriately updated, resulting in an incorrect calculation of players.length * entranceFee. This issue leads to an inaccurate value and must be resolved to maintain the integrity of fee calculations.

Vulnerability Details

The incorrect calculation of totalAmountCollected results in transaction reversals and the locking of funds

Updates

Lead Judging Commences

Hamiltonite Lead Judge almost 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

refund-doesnt-reduce-players-array-size-causing-protocol-to-freeze

zero address can win the raffle

Funds are locked to no one. If someone gets the refund issue, they also got this issue. IMPACT: High Likelihood: High

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.