Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Valid

Player must attend two times along with positive scores can get the profit, which doesn't fit the doc desgin.

Summary

As the doc said as below, but the code is the player must attend two times.

Players can receive an amount from the prize fund only if their total number of points is a positive number and if they had paid at least one prediction fee.

Vulnerability Details

function isEligibleForReward(address player) public view returns (bool) {
return
results[NUM_MATCHES - 1] != Result.Pending &&
playersPredictions[player].predictionsCount > 1;// there should change 1 as 0
}

Impact

Doesn't fit the doc desgin

Tools Used

maual

Recommendations

function isEligibleForReward(address player) public view returns (bool) {
return
results[NUM_MATCHES - 1] != Result.Pending &&
playersPredictions[player].predictionsCount > 0;
}
Updates

Lead Judging Commences

NightHawK Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

The eligibility criteria is wrong

Players with only one prediction cannot withdraw.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.