From 48536534b66300e42b3240022c3f404b7992b67a Mon Sep 17 00:00:00 2001 From: Samyak Jain Date: Wed, 26 Jun 2019 22:08:27 +0530 Subject: [PATCH] bug resolved --- contracts/ProxyLogics/SplitSwap/SplitSwap.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/ProxyLogics/SplitSwap/SplitSwap.sol b/contracts/ProxyLogics/SplitSwap/SplitSwap.sol index b9828cb..68ab198 100644 --- a/contracts/ProxyLogics/SplitSwap/SplitSwap.sol +++ b/contracts/ProxyLogics/SplitSwap/SplitSwap.sol @@ -195,7 +195,7 @@ contract SplitResolver is SplitsRead { } else { ethBought += swapUniswap(ethAddr, daiAddr, amtToSwap); } - destAmt = daiToEthLoop(nextSrcAmt, splitAmt, ethBought); + destAmt = ethToDaiLoop(nextSrcAmt, splitAmt, ethBought); } else if (srcAmt > 0) { (uint bestExchange,) = getBest(ethAddr, daiAddr, srcAmt); destAmt = finalAmt;