From 7c9faf98df2e744bcc8718f5c7cbcce46a5ff5d5 Mon Sep 17 00:00:00 2001 From: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> Date: Sat, 4 Jul 2020 01:34:58 +1000 Subject: [PATCH] minor change --- contracts/connectors/uniswap.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/connectors/uniswap.sol b/contracts/connectors/uniswap.sol index b939b04..54d2970 100644 --- a/contracts/connectors/uniswap.sol +++ b/contracts/connectors/uniswap.sol @@ -409,8 +409,8 @@ contract UniswapResolver is UniswapLiquidity { (TokenInterface _buyAddr, TokenInterface _sellAddr) = changeEthAddress(buyAddr, sellAddr); address[] memory paths = getPaths(address(_buyAddr), address(_sellAddr)); - uint __buyAmt18 = convertTo18(_buyAddr.decimals(), _buyAmt); - uint _slippageAmt = convert18ToDec(_sellAddr.decimals(), wmul(unitAmt, __buyAmt18)); + uint _buyAmt18 = convertTo18(_buyAddr.decimals(), _buyAmt); + uint _slippageAmt = convert18ToDec(_sellAddr.decimals(), wmul(unitAmt, _buyAmt18)); IUniswapV2Router01 router = IUniswapV2Router01(getUniswapAddr());