Uniswap integration completed.

This commit is contained in:
Sowmayjain 2019-04-01 00:05:14 +05:30
parent 61db7a49d4
commit d4609eedd6

View File

@ -207,9 +207,9 @@ contract Helpers is DSMath {
tub.sai().approve(uniDAIDEX, uint(-1));
}
daiSold = daiExchange.tokenToExchangeSwapOutput(
feesMKR,
feesMKR, // (SAMYAK) coz we are reading price via getDAIRequired() in single txn
2**255,
feesMKR, // total MKR to buy
2**255, // max DAI to sell
2**255, // max ETH to sell - http://tinyimg.io/i/2Av1L2j.png
add(now, 100), // deadline is 100 seconds after this txn gets confirmed (i.e. no deadline)
getUniswapMKRExchange()
);