The beforeDeadline modifier fails to properly handle scenarios where the deadline is not set (deadlineSet == false).
The modifier does not check if the deadlineSet flag is true. When deadlineSet is false, the comparison block.timestamp > deadline will always fail (as deadline defaults to 0), causing unintended behavior:
Actions requiring the beforeDeadline modifier are restricted even though no deadline is set.
The modifier performs unnecessary computations even when the deadline is not applicable.
Functions requiring beforeDeadline may fail even when the deadline is not applicable, locking out legitimate actions.
Manual code review
Include a check for deadlineset:
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.