While I can understand why some functions have the same style, these other functions are as such because they are calling an inherited function, as an example for setSlippageLimit(), which really is calling an inherited function from EIP1271Wallet.sol:
Handle
Dravee
Vulnerability details
Here's the only
_investWETHToBuyNOTE()
call:While I can understand why some functions have the same style, these other functions are as such because they are calling an inherited function, as an example for
setSlippageLimit()
, which really is calling an inherited function fromEIP1271Wallet.sol
:However, for
_investWETHToBuyNOTE()
, this style doesn't hold.Recommended Mitigation Steps
All the logic from
_investWETHToBuyNOTE()
should be inlined ininvestWETHToBuyNOTE()
to save gas.