bug resolved

This commit is contained in:
Samyak Jain 2019-06-26 22:08:27 +05:30
parent 7f46c913d0
commit 48536534b6

View File

@ -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;