From 91987cc265f5fc03430fcf8b778b5b89215e1631 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Sat, 2 May 2020 01:23:16 +0530 Subject: [PATCH] removed borrow and suppy util --- protocols/dydx.sol | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/protocols/dydx.sol b/protocols/dydx.sol index f511939..fd96dd8 100644 --- a/protocols/dydx.sol +++ b/protocols/dydx.sol @@ -108,8 +108,7 @@ contract Helpers is DSMath{ uint tokenPrice; uint supplyBalance; uint borrowBalance; - uint supplyUtil; - uint borrowUtil; + uint tokenUtil; } } @@ -128,8 +127,7 @@ contract Resolver is Helpers { solo.getMarketPrice(id).value, tokenBal.sign ? tokenBal.value : 0, !tokenBal.sign ? tokenBal.value : 0, - wmul(totalPar.supply, rateIndex.supply), - wmul(totalPar.borrow, rateIndex.borrow) + wdiv(wmul(totalPar.borrow, rateIndex.borrow), wmul(totalPar.supply, rateIndex.supply)) ); } return tokensData;