Direct lamports manipulation in withdraw
and refund
doesn't account for rent-exempt amounts.
The current implementation transfers raw lamports equal to amount_raised
, which could include:
Rent-exempt reserve in fund account
Any accidental additional deposits
Potential account closure if rent-exempt lamports are removed
Possibility of draining extra funds not from contributions
Manual code review
Track actual contributed amounts separately from account balances
Use proper CPI transfers instead of direct lamports manipulation
Add state field tracking withdrawable amount
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.