The refund function allows refunds based solely on the deadline passing, without checking if the funding goal was unmet, misaligning with the requirement that refunds occur only "if goals aren't met."
The vulnerable code is in the refund function:
rust
Missing Goal Condition: No check for fund.amount_raised < fund.goal.
Deadline-Only Logic: Assumes failure if deadline passes, ignoring goal status.
Funds Misallocation: Refunds could occur even if the goal is met, contradicting contributor intent.
Logic Disruption: Misrepresents campaign failure conditions.
Manual Review
Add a goal 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.