The refund
function however refunds the amount of ETH to the player but fails to decrease the count of players.
Not decreasing the count of players in the refunds function would cause to call the selectWinner
function even if there are less than 4 players.
selectWinner
function can be called even if there are less than 4 players.
VS Code
Use counter variable to count the players length instead of players,length.
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.