Wrong accounting of totalAmountCollected
in selectWinner()
.
players.length
value will not accurately reflect the number of active players if some have called the refund()
function. This can lead to incorrect accounting for the totalAmountCollected
.
totalAmountCollected = players.length * entranceFee
After some players call refund()
, the players.length
will not decrease.
The winner will get more prizes when players get refunded.
Manual review.
Record the active player amount.
Funds are locked to no one. If someone gets the refund issue, they also got this issue. IMPACT: High Likelihood: High
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.