The function allows contributors to send SOL to a campaign, but it does not update the contribution.amount
field after a successful transfer. This means the contribution record does not correctly reflect how much the user has contributed.
The function initializes a Contribution
account if it does not exist.
However, after transferring SOL, the contribution.amount
field is not updated.
As a result, during a refund, users might not receive the correct amount they contributed.
Users who contribute SOL will have an incorrect balance stored in their contribution
account.
The refund process may fail or return incorrect amounts.
This can cause financial loss or a broken refund mechanism.
Manual code review.
Ensure that contribution.amount
is updated after the SOL transfer:
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.