Description: The OnlyPauserWalletOrOwner modifier validates the msg.sender. This modifier accepts the msg.sender as an argument; however, msg.sender is directly available to the modifier by default.
Hence, optimizing the function could result in a more clear and slightly optimized code.
Recommendation: Consider updating the OnlyPauserWalletOrOwner as below:
Context: EmergencyPauseFacet.sol#L37
Description: The
OnlyPauserWalletOrOwner
modifier validates themsg.sender
. This modifier accepts themsg.sender
as an argument; however,msg.sender
is directly available to the modifier by default.Hence, optimizing the function could result in a more clear and slightly optimized code.
Recommendation: Consider updating the
OnlyPauserWalletOrOwner
as below:LI.FI: Fixed in e6cbae6ef39e1fb13937aaaea384d0f93397c591
Researcher: Confirmed.