Hi,
I have found out a potential bug in withdraw and refund functions of the smart contract having no update state after transfer of funds.
The withdraw and refund functions do not update the fund.amount_raised field after transferring funds out of the fund account. This means the amount_raised field does not accurately reflect the current balance of the fund.
Misleading accounting can confuse users and potentially allow double-spending or incorrect refund calculations.
Manual review
In the withdraw function, reset fund.amount_raised to zero after withdrawal.
In the refund function, subtract the refunded amount from fund.amount_raised.
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.