Open shuhuiluo opened 1 year ago
Consider using low level call or inline assembly for calling balanceOf, ownerOf, getReserves, swap, etc.
balanceOf
ownerOf
getReserves
swap
For example for command BALANCE_CHECK_ERC20, https://github.com/Uniswap/universal-router/blob/b01e71f8ea6458ce86cb94ad68b5d4d92d3a7382/contracts/base/Dispatcher.sol#L203-L204
BALANCE_CHECK_ERC20
it isn't necessary to invoke extcodesize by using the interface. This also applies to all calls made to PERMIT2.
extcodesize
PERMIT2
Consider using low level call or inline assembly for calling
balanceOf
,ownerOf
,getReserves
,swap
, etc.For example for command
BALANCE_CHECK_ERC20
, https://github.com/Uniswap/universal-router/blob/b01e71f8ea6458ce86cb94ad68b5d4d92d3a7382/contracts/base/Dispatcher.sol#L203-L204it isn't necessary to invoke
extcodesize
by using the interface. This also applies to all calls made toPERMIT2
.