RustFund

First Flight #36
Beginner FriendlyRust
100 EXP
View results
Submission Details
Severity: high
Valid

Contribution not updated correctly

Summary

Contribute() doesn't update the amount contributed

Vulnerability Details

Whenever a contributor contributes an amount to a fund, their contribution doesn't get tracked by the FundContributebecause the contribution.amount remains 0 after initialization.

Impact

Contributors are unable to refund their contributions in the event of a fund not meeting its goal.

Tools Used

N/A

Recommendations

Add contribution.amount += amount;to the end of the contribute() function.

Updates

Lead Judging Commences

bube Lead Judge
3 months ago

Appeal created

bube Lead Judge 2 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Contribution amount is not updated

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.