The RebasingGToken.transfer function logs LogTransfer(msg.sender, recipient, amount) but the previous super._transfer call already logs the exact same arguments Transfer(sender, recipient, amount).
Recommended Mitigation Steps
The LogTransfer event is not needed for the rebasing token as it is the same as the Transfer event of the base class.
Removing and not emitting LogTransfer saves gas on every transfer.
Handle
cmichel
Vulnerability details
Vulnerability Details
The
RebasingGToken.transfer
function logsLogTransfer(msg.sender, recipient, amount)
but the previoussuper._transfer
call already logs the exact same argumentsTransfer(sender, recipient, amount)
.Recommended Mitigation Steps
The
LogTransfer
event is not needed for the rebasing token as it is the same as theTransfer
event of the base class. Removing and not emittingLogTransfer
saves gas on every transfer.