GaugeController.apply_transfer_ownership()
emits ApplyOwnership
events when the admin hasn't changed
#80
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
GaugeController.apply_transfer_ownership()
emitsApplyOwnership
events when the admin hasn't changed and left as it was before that transaction.Impact
There is no reason to emit these
ApplyOwnership
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 admin is different than the old one.
The text was updated successfully, but these errors were encountered: