mirror of
https://github.com/Instadapp/dsa-resolvers-deprecated.git
synced 2024-07-29 22:38:16 +00:00
minor fix
This commit is contained in:
parent
f52aae2ad5
commit
d52c84b94e
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user