GivingThanks::donate
is intended to allow donors to contribute funds to a verified charity. However there isn't any check for whether that donor is actually sending any funds.
Likelihood: Low
Severity: Low
The likelihood that a user executes donate
without any funds is very low and would normally be pointlesss. However it should be worth mentioning that if there are any future plans on benefits for user that have a donation NFT, then adding a requirement for users to actually donate funds might be important.
Manual Review
Please add the following require()
statement to the following GivingThanks::donate
function:
Likelyhood: Low, anyone can mint an NFT with 0 amount. No reason to do it. Impact: Informational/Very Low, NFT are minted to a false donator. An NFT with 0 in the amount section would be useless. Since that's a bad design and not expected, I'll consider it Low but in a real contest, it could be informational because there is no real impact.
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.