The contribute function fails to update contribution.amount with the contributed amount. It initializes to 0 for new contributions but never increments it, leaving the contribution record inaccurate.
The contribute function fails to update contribution.amount with the contributed amount. It initializes to 0 for new contributions but never increments it, leaving the contribution record inaccurate.
Users cannot track their total contributions accurately, which may confuse them or break refund logic relying on this value. It doesn’t directly compromise funds but undermines program reliability
manual code review
Add a line to increment contribution.amount after the lamports transfer in the contribute function:
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.