From d4609eedd67683b8f4b013379f20255f5126137b Mon Sep 17 00:00:00 2001 From: Sowmayjain Date: Mon, 1 Apr 2019 00:05:14 +0530 Subject: [PATCH] Uniswap integration completed. --- contracts/ProxyLogics/InstaMaker.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/ProxyLogics/InstaMaker.sol b/contracts/ProxyLogics/InstaMaker.sol index 23aa3f2..0844170 100644 --- a/contracts/ProxyLogics/InstaMaker.sol +++ b/contracts/ProxyLogics/InstaMaker.sol @@ -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() );