Health factor
Last updated
Last updated
We compare the total current debt of the token with underlying loans current value and collateral(s) to determine the health.
where,
Health factor
Collateral current value in USD
Loan account current value in USD
Net liabilities (Original loan + interest) in USD
Note: For on-chain computations, we use USDT as base value to compute values.
Health is monitored at two levels:
dToken level: Determines the total health of the protocol for this asset
user loan level: Determines health of a user’s individual loan
For the above loan discussed, the health factor can be computed as below:
Before partial withdrawl
Assuming an interest of 2 USDC accrued,
$L_{net} =$ 300 + 2 USDC = 302
Post spend
Health factor determines if a loan can be liquidated. Read Liquidations for more info.
total value of the debt issued by the contract across the protocol
n is the total number of supported collaterals, is the net value of the ith collateral locked.
unspent loan amounts + Sum (spent loan amounts)
1 ETH * 100 = 100
300 USDC = 300
So, Health factor (100 + 300)/302 = 1.32
= 3 ETH x $100 = $300
So, Health factor (100 + 300)/302 = 1.32