There is no zero amount check for amount
parameter sent to the contribute
instruction, which allows to send zero amount to the fund account.
There is no check in the beginning of the contribute
instruction which allows to send 0 amount to the fund account which isn't an issue but it isn't something desirable.
Anyone can send 0 amount to a fund account.
Add a check in the beginning of the contribute
function,
Add this enum variant,
If user contributes 0 SOL, the `contribution.amount` will be updated with 0 value. There is no impact on the protocol. Also, the new contributers should pay for account creation, therefore there is no incentive someone to create a very huge number of accounts to contribute zero amount.
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.