LockeERC20.approve()
and LockeERC20.permit()
emit Approval
events when the allowence hasn't changed
#153
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Handle
pants
Vulnerability details
The functions
LockeERC20.approve()
andLockeERC20.permit()
emitApproval
events when the allowance hasn't changed and left as it was before that transaction.Impact
There is no reason to emit these
Approval
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 new allowance is different than the old one.
The text was updated successfully, but these errors were encountered: