MainToken.burn()
emits Transfer
events when the burned amount is zero
#61
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
pants
Vulnerability details
The function
MainToken.burn()
emitsTransfer
events when the burned amount is zero.Impact
There is no reason to emit these
Transfer
events because nothing has changed in the system. Such events are only going to confuse users.Tool Used
Manual code review.
Recommended Mitigation Steps
Emit these events only when the burned amount is not zero.
The text was updated successfully, but these errors were encountered: