From 1147cff4b106bd4efbdfa15d1822f2e63afd38bd Mon Sep 17 00:00:00 2001 From: Samyak Jain Date: Sat, 15 Jun 2019 03:00:18 +0530 Subject: [PATCH] small change --- contracts/ProxyLogics/InstaBridge.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contracts/ProxyLogics/InstaBridge.sol b/contracts/ProxyLogics/InstaBridge.sol index ca25ab1..4353c36 100644 --- a/contracts/ProxyLogics/InstaBridge.sol +++ b/contracts/ProxyLogics/InstaBridge.sol @@ -262,7 +262,6 @@ contract MakerHelper is Helper { function getCDPStats(bytes32 cup) internal view returns (uint ethCol, uint daiDebt) { TubInterface tub = TubInterface(getSaiTubAddress()); - uint usdPerEth = uint(MakerOracleInterface(getOracleAddress()).read()); (, uint pethCol, uint debt,) = tub.cups(cup); ethCol = rmul(pethCol, tub.per()); // get ETH col from PETH col daiDebt = debt; @@ -371,7 +370,7 @@ contract MakerHelper is Helper { uint debtInEth = wmul(daiAmt, daiCompOracle); (uint ethCol,) = getCDPStats(cup); uint ratio = wdiv(debtInEth, ethCol); - require(ratio < 740000000000000000, "Danger to liquidate"); + require(ratio < 740000000000000000, "Ratio above 74%"); BridgeInterface(getBridgeAddress()).transferDAI(daiAmt);