minor fix

This commit is contained in:
Thrilok Kumar 2020-05-27 04:22:44 +05:30
parent f52aae2ad5
commit d52c84b94e

View File

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