The ChristmasDinner
contract lacks flexibility in deadline management as the deadline can only be set once and cannot be modified, potentially forcing event cancellation if set incorrectly.
The deadline management system has a critical design limitation where the deadline can only be set once due to the deadlineSet
boolean flag:
Once deadlineSet
is true, there is no way to modify the deadline as:
deadlineSet
is never reset
No functions exist to modify the deadline
All deposit and refund operations strictly enforce the deadline via beforeDeadline
modifier
This inflexibility could lead to:
Forced event cancellation if deadline is set incorrectly
Inability to handle legitimate delays or changes in plans
Loss of user participation if deadline needs extension
Additional gas costs if contract redeployment is needed due to deadline issues
Manual code review
Implement a deadline extension function accessible by the host
Add a grace period for deadline adjustments
Consider allowing deadline modifications with participant consensus
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.