In the contribute function, the amount contributed by each user was not properly recorded in the Contribution account, making it impossible to accurately track the total amount contributed by each contributor.
1. Here the Contribution account is initialized, but contribution.amount is not updated after the SOL transfer is completed.
2 .This means that even if the user contributes multiple times, the amount in the Contribution account remains at 0, which does not accurately reflect the user's contribution history.
3.Contribution.amount is relied upon in the refund logic, but because the value is always 0, it may not be refunded correctly, or may result in an issue where the refund amount is 0.
It is unknown how much SOL each contributor donated, and if the refund logic depends on contribution.amount, it may result in incorrect refunds or
Manual review
After the fund transfer in the contribute function is successful, update contribution.amount to record the cumulative contribution amount of each user:
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.