fixed oasis sellAmount function

This commit is contained in:
Thrilok Kumar 2020-05-21 16:20:08 +05:30
parent eec0720494
commit eb3eb30fb2

View File

@ -117,7 +117,7 @@ contract Resolver is OasisHelpers {
function getSellAmount(address buyAddr, address sellAddr, uint buyAmt, uint slippage) public view returns (uint sellAmt, uint unitAmt) {
(TokenInterface _buyAddr, TokenInterface _sellAddr) = changeEthAddress(buyAddr, sellAddr);
sellAmt = OasisInterface(getOasisAddr()).getPayAmount(address(_sellAddr), address(_buyAddr), buyAmt);
unitAmt = getBuyUnitAmt(_sellAddr, sellAmt, _buyAddr, buyAmt, slippage);
unitAmt = getSellUnitAmt(_sellAddr, sellAmt, _buyAddr, buyAmt, slippage);
}
function getMinSellAmount(address sellAddr) public view returns (uint minAmt) {