The refund function doesn’t handle deadline = 0, potentially allowing refunds before a deadline is set.
Vulnerability Details:
The vulnerable code is in the refund function:
rust
No Check: deadline = 0 skips the condition, proceeding to refund.
Impact:
Funds Misallocation: Unintended refunds in uninitialized campaigns.
Tools Used: Manual Review
Recommendations:
Add check:
rust
Add new error code:
rust
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.