Summary
When a user contributes to a fund, the contribution amount is not recorded in their Contribution
account.
Vulnerability Details
In the contribute
function:
The contribution.amount
is initialized but never updated after transferring SOL.
The contributed amount should be recorded in the Contribution
account for accurate tracking.
Impact
Incorrect tracking of contributions.
Users cannot verify their total contributions to a fund.
Refund logic may fail if contribution records are incorrect.
Tools Used
Manual code review
Recommendations
Update the contribute
function to include:
This ensures the contribution is recorded correctly.
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.