The contribute
function fails to update the Contribution
account's amount
field, causing only the latest contribution to be recorded. This results in incorrect refund amounts and potential loss of funds for contributors.
In the contribute
function, the Contribution
account's amount
is initialized to 0
but never incremented with the contributed amount
. As a result, each new contribution overwrites the previous value. During a refund, only the last contribution is refunded, despite multiple contributions.
Contributors lose access to previously contributed funds, as refunds only return the latest contribution. This breaks core contract logic and leads to irreversible fund loss.
Update the Contribution
account's amount
after each 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.