The contract allows contributions without verifying if the total raised amount would exceed the original fundraising goal.
The contribute
function does not check if adding the new amount would push amount_raised
beyond goal
.
This could result in a situation where a fund collects more than its intended goal without any enforcement mechanism.
Overfunding can lead to misallocation of resources and unintended fund distribution issues.
Contributors might be unknowingly donating to a fully funded campaign.
Implement a check before accepting contributions to prevent exceeding the goal.
Code review
Typically the crowdfunding campaigns allow contribution after the goal is achieved. This is normal, because the goal is the campaign to raise as much as possible funds. Therefore, this is a design choice.
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.