In ThePredicter::makePrediction
, there is no restriction on any address making a prediction. This means that players who didn't pay the entrance fee and aren't approved by the organizer can make predictions.
These players can also withdraw their rewards (if they are eligible), and the withdraw function doesn't include their rewards in totalShares
.
Users don't need to pay the entrance fee to make predictions and get rewards.
Users don't need to be approved by the organizer to make predictions and get rewards.
If the predictionFee
is less than the entranceFee
, users who made predictions without paying the entranceFee can block approved users from getting their rewards (because they are not included in totalShares
).
Add a condition to the function to check if the player is approved by the organizer.
makePrediction has no access controls and any unapproved user can make predictions causing an incorrect calculation and distribution of rewards.
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.