The _burn function does not check if value is zero before performing operations.
Wastes gas on unnecessary storage operations
Emits events for no-op operations (once events are added)
Could be used for griefing/spam attacks
Likelihood:
Even though the likelihood is low, the absence of this check could negatively affect the protocol and its front-end implementations.
Impact:
Unnecessary gas consumption
Potential spam vector
Inconsistent with best practices
This test verifyes that there is no revertn on zero value burn in the _burn functions.
Add zero value check to the _burn functions.
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.
The contest is complete and the rewards are being distributed.