get leverage error fixed

This commit is contained in:
Samyak Jain 2019-05-04 00:01:24 +05:30
parent 016ecd3020
commit 91063d81bd

View File

@ -417,7 +417,7 @@ contract GetDetails is MakerHelpers {
uint expectedETH = wmul(debtToBorrow, expectedRate);
if (ethCol != 0) {
finalEthCol = add(ethCol, expectedETH);
finalDaiDebt = maxDebtLimit;
finalDaiDebt = add(daiDebt, debtToBorrow);
finalColToUSD = wmul(finalEthCol, usdPerEth);
canLeverage = true;
} else {