mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
removed MKR-ETH swap for now.
This commit is contained in:
parent
3e7672e4f3
commit
c8ea5f8c98
|
@ -191,18 +191,6 @@ contract Helpers is DSMath {
|
|||
reqDAI = daiExchange.getEthToTokenInputPrice(ethBought);
|
||||
}
|
||||
|
||||
/** (SOWMAY)
|
||||
* @dev swapping given ETH with MKR
|
||||
*/
|
||||
function swapMKRviaETH(uint feesMKR, uint deadline) public payable returns(uint ethSold) {
|
||||
UniswapExchange mkrExchange = UniswapExchange(getUniswapMKRExchange());
|
||||
uint ethPaid = msg.value;
|
||||
ethSold = mkrExchange.ethToTokenSwapOutput.value(ethPaid)(feesMKR, deadline);
|
||||
// (SOWMAY) - Pay MKR to Maker contract
|
||||
uint ethToReturn = ethPaid - ethSold;
|
||||
msg.sender.transfer(ethToReturn);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev swapping given DAI with MKR
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue
Block a user