The withdraw
function allows the creator to withdraw funds without verifying:
If the campaign deadline has passed.
If the fundraising goal (amount_raised >= goal
) has been met.
This enables the creator to drain funds prematurely, even if the campaign failed or is ongoing.
Fund Theft: The creator can withdraw funds before the deadline or before the goal is met, violating the protocol’s rules.
Loss of Trust: Contributors lose confidence in the platform, as funds are not safeguarded by basic campaign logic.
Add explicit checks for the deadline and goal:
Add Missing Error Variant:
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.