From d52c84b94ee5b0fd830464b85a14497ced1ce7e7 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Wed, 27 May 2020 04:22:44 +0530 Subject: [PATCH] minor fix --- contracts/protocols/uniswapV2.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/protocols/uniswapV2.sol b/contracts/protocols/uniswapV2.sol index 0375be6..cbb5591 100644 --- a/contracts/protocols/uniswapV2.sol +++ b/contracts/protocols/uniswapV2.sol @@ -167,7 +167,7 @@ contract Resolver is UniswapHelpers { function getBuyAmount(address buyAddr, address sellAddr, uint sellAmt, uint slippage) public view returns (uint expectedRate, uint unitAmt) { (TokenInterface _buyAddr, TokenInterface _sellAddr) = changeEthAddress(buyAddr, sellAddr); - expectedRate = getExpectedSellAmt(address(_buyAddr), address(_sellAddr), sellAmt); + expectedRate = getExpectedBuyAmt(address(_buyAddr), address(_sellAddr), sellAmt); unitAmt = getBuyUnitAmt(_buyAddr, expectedRate, _sellAddr, sellAmt, slippage); }