The readMe states that:
If all Players have a negative number of points, they will receive back the value of the entry fee.
With the current state of the function this condition is never met due to the additional check for maxScore
.
Players will not receive their entrance fee back if all players have negative scores, contrary to the specified rules. This can lead to financial losses and dissatisfaction among participants, potentially causing reputational damage to the organizer.
Manual review
Removing the if statement condition for maxScore
and moving the if statement up in the function would be also more gas effiecient.
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.