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);
|
uint expectedETH = wmul(debtToBorrow, expectedRate);
|
||||||
if (ethCol != 0) {
|
if (ethCol != 0) {
|
||||||
finalEthCol = add(ethCol, expectedETH);
|
finalEthCol = add(ethCol, expectedETH);
|
||||||
finalDaiDebt = maxDebtLimit;
|
finalDaiDebt = add(daiDebt, debtToBorrow);
|
||||||
finalColToUSD = wmul(finalEthCol, usdPerEth);
|
finalColToUSD = wmul(finalEthCol, usdPerEth);
|
||||||
canLeverage = true;
|
canLeverage = true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user