From 22ebfac88da9030c1127b8cdd6c7f0e660dd68bd Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Tue, 8 Jun 2021 00:22:34 +0530 Subject: [PATCH] minor fix --- contracts/mainnet/connectors/uniswap_v3_erc20/main.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/mainnet/connectors/uniswap_v3_erc20/main.sol b/contracts/mainnet/connectors/uniswap_v3_erc20/main.sol index 3ee00d8e..dba1fd15 100644 --- a/contracts/mainnet/connectors/uniswap_v3_erc20/main.sol +++ b/contracts/mainnet/connectors/uniswap_v3_erc20/main.sol @@ -64,12 +64,12 @@ abstract contract AuthorityResolver is Events, Helpers { if (amount0 > 0) { IERC20 _token0 = poolContract.token0(); - convertWethToEth(address(_token0) == wethAddr, TokenInterface(address(_token0)), _amt); + convertWethToEth(address(_token0) == wethAddr, TokenInterface(address(_token0)), amount0); } if (amount1 > 0) { IERC20 _token1 = poolContract.token1(); - convertWethToEth(address(_token1) == wethAddr, TokenInterface(address(_token1)), _amt); + convertWethToEth(address(_token1) == wethAddr, TokenInterface(address(_token1)), amount1); } require(amount0 >= minAmtA && amount1 >= minAmtB, "received below minimum");