Open code423n4 opened 3 years ago
This optimization seems overkill. How much gas would we save by implementing this kind of function? It's a trade of between gas consumption and the ease of maintenance of our code, so I prefer to keep a code that will be easier to maintain in the future than introduce some complexity that may not bring much in term of gas saving.
Handle
hickuphh3
Vulnerability details
Impact
Since
mAsset
is immutable and is initialized to a valid token address, a redundant extcodesize check can be avoided, just like how UniswapV3 does it.Recommended Mitigation Steps