From 2e8ba1d8468838a9f1a79e69872886cfeb336aa5 Mon Sep 17 00:00:00 2001 From: Thrilok kumar Date: Sun, 16 Jan 2022 00:34:39 +0530 Subject: [PATCH] Update contracts/mainnet/connectors/uniswap/v3_auto_router/helpers.sol --- contracts/mainnet/connectors/uniswap/v3_auto_router/helpers.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/mainnet/connectors/uniswap/v3_auto_router/helpers.sol b/contracts/mainnet/connectors/uniswap/v3_auto_router/helpers.sol index c1236821..91d0c584 100644 --- a/contracts/mainnet/connectors/uniswap/v3_auto_router/helpers.sol +++ b/contracts/mainnet/connectors/uniswap/v3_auto_router/helpers.sol @@ -43,7 +43,7 @@ abstract contract Helpers is DSMath, Basic { buyAmt = sub(finalBal, initalBal); require(_slippageAmt <= buyAmt, "Too much slippage"); - isEth = address(buyToken) == ethAddr; + isEth = address(swapData.buyToken) == ethAddr; convertWethToEth(isEth,buyToken,buyAmt); }