From 06f669e473cb61c01b360e4cf4a7f38419fd088c Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Thu, 9 Jul 2020 15:43:01 +0530 Subject: [PATCH] Minor change --- contracts/protocols/uniswapV2.sol | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/contracts/protocols/uniswapV2.sol b/contracts/protocols/uniswapV2.sol index 75ece6d..1e36002 100644 --- a/contracts/protocols/uniswapV2.sol +++ b/contracts/protocols/uniswapV2.sol @@ -251,8 +251,8 @@ contract Resolver is UniswapHelpers { } struct TokenPair { - TokenInterface tokenA; - TokenInterface tokenB; + address tokenA; + address tokenB; } struct PoolData { @@ -271,8 +271,7 @@ contract Resolver is UniswapHelpers { uint _len = tokenPairs.length; PoolData[] memory poolData = new PoolData[](_len); for (uint i = 0; i < _len; i++) { - TokenInterface tokenA = tokenPairs[i].tokenA; - TokenInterface tokenB = tokenPairs[i].tokenB; + (TokenInterface tokenA, TokenInterface tokenB) = changeEthAddress(tokenPairs[i].tokenA, tokenPairs[i].tokenB); address exchangeAddr = IUniswapV2Factory(router.factory()).getPair( address(tokenA), address(tokenB)