mirror of
https://github.com/Instadapp/dsa-resolvers-deprecated.git
synced 2024-07-29 22:38:16 +00:00
fixed oasis sellAmount function
This commit is contained in:
parent
eec0720494
commit
eb3eb30fb2
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user