Several verifications use the ">" operator instead of ">=", leaving the condition open when the expiration time is not yet reached.
During the execution of setContest
, the closeTime
can be set to MAX_CONTEST_PERIOD
, indicating that the entire expiration time is utilized. Consequently, when deploying a proxy, it is crucial to secure the following:
However, if saltToCloseTime[salt]
equals block.timestamp
, this function will not revert when is not yet finished.
The proxy can be deployed and distributed while the MAX_CONTEST_PERIOD
is still ongoing.
Manual code review.
We recommend the following modification to your smart contract code:
This change is suggested for the four issues mentioned in the audit report.
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.