removed maxEth

This commit is contained in:
Samyak Jain 2019-05-06 21:05:55 +05:30
parent af1e0760fa
commit 0d383ee4d3

View File

@ -325,13 +325,6 @@ contract GetDetails is MakerHelpers {
uint maxDebtLimit = wdiv(colToUSD, 1500000000000000000) - 10;
maxDaiToDraw = sub(maxDebtLimit, daiDebt);
ethInUSD = usdPerEth;
(uint expectedRate,) = KyberInterface(getAddressKyber()).getExpectedRate(getAddressETH(), getAddressDAI(), maxColToFree);
uint expectedDai = wmul(maxColToFree, expectedRate);
if (expectedDai > maxDaiToDraw) {
maxColToFree = wmul(maxColToFree, wdiv(maxDaiToDraw, expectedDai));
}
}
function getSave(uint cdpID, uint ethToSwap) public view returns (uint finalEthCol, uint finalDaiDebt, uint finalColToUSD, bool canSave) {