mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Update helpers.sol
This commit is contained in:
parent
5f9005650a
commit
ac72a6d574
|
@ -56,11 +56,11 @@ abstract contract Helpers is DSMath, Basic {
|
||||||
swapData._buyAmt = _swapHelper(swapData);
|
swapData._buyAmt = _swapHelper(swapData);
|
||||||
|
|
||||||
bool isEthBuyToken = address(swapData.buyToken) == wethAddr;
|
bool isEthBuyToken = address(swapData.buyToken) == wethAddr;
|
||||||
convertWethToEth(isEthBuyToken, swapData.buyToken, swapData .buyAmt);
|
convertWethToEth(isEthBuyToken, swapData.buyToken, swapData._buyAmt);
|
||||||
|
|
||||||
setUint(setId, swapData._buyAmt);
|
setUint(setId, swapData._buyAmt);
|
||||||
|
|
||||||
return swapData;
|
return swapData;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user