Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: medium
Invalid

Contract_does_not_correctly_enforce_the_prediction_deadline

The condition if (block.timestamp <= START_TIME + matchNumber * 68400 - 68400) in the setPrediction function of the ScoreBoard contract does not correctly enforce the prediction deadline. Since 68400 - 68400 equals 0, the expression simplifies to

This condition allows predictions until the exact start time of the tournament instead of closing one hour before the matc

Impact:

Players can make predictions until the match start time, violating the intended rule that predictions must close one hour before the match begins.

Tools Used

Manual review

Recommendations

properly set the timestamp

Updates

Lead Judging Commences

NightHawK Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Appeal created

CoderOfPHCity Submitter
11 months ago
NightHawK Lead Judge
11 months ago
CoderOfPHCity Submitter
11 months ago
NightHawK Lead Judge
11 months ago
NightHawK Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.