The protocol specifies that predictions should close at 7 PM every day, which is one hour before the match's start time. However, the current logic does not adhere to this requirement.
Incorrect Time Calculation:
The time calculation START_TIME + matchNumber * 68400 - 68400
is incorrect for determining the closing time for predictions.
The variable 68400
is intended to represent the number of seconds in 19 hours, but it does not align with the protocol's requirement of closing predictions 1 hour before the match starts. This calculations only allows players to make predictions 19hours before the match time on the first day and at a longer time for other days.
Proof Of Code
Players are unable to make predictions starting 18 hours and 59 seconds before the match time on the first day and even longer on subsequent days of the tournament. This violates the protocol's design, which allows players to make and set predictions up until 1 hour before the START_TIME
. This issue can lead to missed opportunities and player dissatisfaction.Tools Used
Foundry
This should be the correct calculation to for calculating the time
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.