mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
get leverage error fixed
This commit is contained in:
parent
016ecd3020
commit
91063d81bd
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user