The makePrediction()
function in ThePredicter
contract currently lacks a check for player status. As a result, any user can call this function after paying the Prediction Fee, regardless of their status.
Without checking player status, unauthorized users can participate in the game, make predictions, and potentially withdraw rewards. This could lead to exploitation of the game's reward system and unfair distribution of prizes.
Manual review and testing
Add a check for player status in the makePrediction()
function to ensure that only approved players can make predictions. This can be implemented by adding a require
statement at the beginning of the function.
This modification ensures that only players with an "Approved" status can participate in the prediction process, thereby maintaining the integrity and fairness of the game.
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.