Update contracts/mainnet/connectors/uniswap/v3_auto_router/helpers.sol

This commit is contained in:
Thrilok kumar 2022-01-16 00:34:39 +05:30 committed by GitHub
parent 38c3d3e222
commit 2e8ba1d846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}