ThePredicter::makePrediction
does not forces msg.sender
to be an approved Player.
Anyone can participate, beyond the max 30 Players approved by the Organizer. If a non-approved User participates and withdraw some prize, they steal it from the pool of real Players since the pool is calculated from the length of players.
Add the following code at the end of the test file and run it :
forge test --mt test_userCanMakePredictionWithoutRegistering
Update ThePredicter::makePrediction
to revert if msg.sender
is not approved by the Organizer (in the list of players
).
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.