Check players.length >= 4
is not correct
This statement requires at least 4 players to participate but what if they were refunded before?
That makes players.length
is not changed but the player in that array is not active.
So the logic of the raffle will be wrong.
Ex: If the player in index 3 has refunded, but with this logic they are the winner so the winning prize will be sent to
address(0) so the prize will lost forever
Manual
Foundry
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.