when contributor call contribute
there are no check if amount
provided would surpass the goal of the campaign.
then it is possible for a campaign to have more fund than the goal
if the goal is 100, and currently there are 90 SOL sitting on the contract. then a contributor A try to call contribute
with 10 SOL and at the same time contributor B try to call contribute
with 5 SOL.
because there are no check if goal
is already reached, then the function calls would succeed, effectively makes the contract have 105 SOL when the goal is 100 SOL.
the campaign goal can be exceeded, it would break the core function because the goal are there to limit what a campaign can receive
manual review
validate the amount provided when calling contribute
and possibly adjust the amount ex: if the contract missing 5 SOL and contributor contribute 10 SOL, then change the amount to 5 SOL only.
also add check inside contribute
function to revert if the goal already reached so no new contributor can be added
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.
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.