The refund() function allows the fund contributors to get refund of the funds eventhough goals have been met. This is due to check present in this function which will revert if fund goals are accomplished.
Currently, the function simply refudns the contributed funds to the contributers.
However, there is no check to verify if fund.goal > fund.amount_raised. This means the creator can get the refunds, even if the fundraising goal has been met
Fund contributors can refund even though fund goals are acheived
Manual Review
Add a check before allowing refund:
This ensures that refunds are only possible if the goal is not reached, maintaining the integrity of the fundraising process.
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.