The isEligibleForReward
function in the ScoreBoard
contract determines if a player is eligible to receive a reward from the prize pool. However, it has a vulnerability due to an incorrect condition for eligibility, which contradicts the stated rules.
Incorrect Eligibility Condition:
The function checks if predictionsCount
is greater than 1, which requires players to have made at least 2 predictions to be eligible.
This contradicts the stated rule that players need to have paid at least one prediction fee and have a positive number of points.
Players who have made only one valid prediction and have a positive score may be unfairly excluded from receiving rewards. This can lead to player dissatisfaction and disputes, undermining the fairness and credibility of the tournament.
Manual review
The check playersPredictions[player].predictionsCount > 1
should be playersPredictions[player].predictionsCount > 0
.
Players with only one prediction cannot withdraw.
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.