The function does not update fund.amount_raised when a refund is processed. This results in an inconsistent state, where the contract still reflects the original raised amount, even though funds have been withdrawn.
fund.amount_raised is not updated in refund function.
The contract's state becomes inaccurate, affecting logic that depends on amount_raised.
Manual
Update fund.amount_raised to accurately reflect refunds:
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.