If active player not find, always return position for first player.
If after call getActivePlayerIndex(address player)
player not find, return 0. 0 - index of the first player who participates in the lottery. So if no active player is found, the index of the first player will always be returned.
Incorrect definition of an active lottery player.
Manual review
Replace return 0
with return -1
.
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.