There is no minimum check amount in the contribute
function, allowing a user to pollute the database with useless contribution
There is no minimum check amount in the contribute
function, allowing a user to pollute the database with useless contribution.
A user can pollute the database with useless contribution that could result in excessive gas usage. It could lead also to on-chain storage inefficiencies. Solana blockchain is not that much expensive but it is important to mentionned it.
Manual Review
Add a check that return an error if an amount is equal to 0 like this :
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.