When a contributor requests a refund, the fund.amount_raised
value is not reduced by the refunded amount. This results in an inflated total of raised funds, misrepresenting the actual balance held by the fund.
Inaccurate Accounting: The protocol will report a higher amount_raised
than the actual SOL held in the fund.
Operational Risks: Creators may withdraw more funds than available, or contributors might be denied refunds due to insufficient SOL.
Use checked_sub
to safely decrement amount_raised
and handle underflow:
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.