A user must submit at least two predictions to be eligible for reward.
Function ScoreBoard::isEligibleForReward()
checks for two conditions:
The last match's result is set and should not be in its default value.
The player's predictionsCount
is more than one.
The second condition may not be favorable to the user if the user only predicts one match and collects positive score, because they will not be able to withdraw their reward share. This condition is irreversible and their reward gets stuck in the ThePredicter
contract.
The user with one prediction and positive score cannot withdraw reward.
Testing, manual review
Consider replacing the code in line 97 with the following snippet:
The following test demonstrates that one prediction is not eligible for reward.
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.