From the documentation the start time/date, uint256 private constant START_TIME of the protocol Thursday, Aug 15, 2024, 20:00:00 GMT+0000 is 1723752000. This is an error. The correct start/date, uint256 private constant START_TIME of the protocol Thursday, Aug 15, 2024, 20:00:00 GMT+0000 is 723748400
The ScoreBoard::START_TIME & ThePredicter::START_TIME are not correct, this would cause a delay in the start time of the protocol. This would cause denial of service. The correct Unix timestamp for Thursday, Aug 15, 2024, 20:00:00 GMT+0000 is 1723748400. From the code base the ScoreBoard::START_TIME & ThePredicter::START_TIME is set at as 1723752000 for the Unix timestamp for "Thursday, Aug 15, 2024, 20:00:00 GMT+0000". There is an error in the Unix timestamp for "Thursday, Aug 15, 2024, 20:00:00 GMT+0000". 1723752000 != 1723748400.
Run the javascript code. Save the file in date.js. On the terminal run node date.js The output is 1723748400. 1723748400 is the correct ScoreBoard::START_TIME & ThePredicter::START_TIME
There would be a delay in the start time of the protocol. This would cost DoS. ScoreBoard::setPrediction, ThePredicter::makePrediction & ThePredicter::register function and all functions that require START_TIME would be executed with wrong timing. Malicious players can make predictions after the game has elapsed to have accurate predictions.
Manual Code Review
The corrcet ScoreBoard::START_TIME & ThePredicter::START_TIME, uint256 private constant START_TIME = 1723748400 ; // Thu Aug 15 2024 20:00:00 GMT+0000 should be used and NOT uint256 private constant START_TIME = 1723752000 // Thu Aug 15 2024 20:00:00 GMT+0000- uint256 private
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.