https://github.com/Cyfrin/2024-07-the-predicter/blob/main/src/ScoreBoard.sol#L66
https://github.com/Cyfrin/2024-07-the-predicter/blob/main/src/ThePredicter.sol#L93
In the ScoreBoard::setPrediction
and ThePredicter::makePrediction
functions, there is a condition that should check if a player can make a prediction due to restrictions that allow players to make predictions until 19:00:00 UTC on the day of the match. The condition in these functions is wrong for all matches.
For example, for the first game, players should be able to submit predictions until 2024-08-15 19:00:00 UTC, but they cansubmit predictions only until 2024-08-15 01:00:00 UTC.
Players can't submit predictions until 19:00:00 UTC on the day of the match.
Replace the incorrect condition in the functions with the correct one. For example in ScoreBoard::setPrediction
function:
In both contracts there is a similar error in the computation of the timestamps of the matches.
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.