Winner could be address(0)
the winner is selected in the following manner and check if the selected address is address(0) is missing:
address winner = players[winnerIndex];
Further down the function some funds are sent to the winner which could be address(0)
(bool success,) = winner.call{value: prizePool}("");
Invalid winner could be selected.
Manual review
Do not allow address(0) values to be left in the 'players' array (remove 'refund' function).
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.