Describe the normal behavior in one or more sentences
When refunding or withdrawing funds, the code doesn't explicitly handle rent exemption for the fund account. If all funds are withdrawn and the account balance falls below the rent exemption threshold, the account could potentially be closed, losing the fund's state data.
Explain the specific issue or problem in one or more sentences
The normal behavior should ensure that when withdrawing or refunding, the fund account maintains sufficient balance for rent exemption. The current implementation doesn't account for this.
Likelihood:
* This occurs when fund account balance exactly equals amount_raised + rent
* Happens when all contributions exactly match the account's total balance
* Rare but possible edge case
Impact:
* Fund account could become rent-exempt after withdrawal
* Account state could be lost if account is closed
* Historical data about the fund would be lost
* Potential for account closure attacks
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.