Health fields
Check loan state to see these health fields:ltv: the current loan-to-value ratiohealthFactor: the current health factorhealthFactorBand: the current health factor bandliquidationPrice: the cirBTC price at which the loan would cross intoLIQUIDATABLE
Loan-to-value ratio (LTV)
Loan-to-value ratio is the ratio of your outstanding debt to the current value of your collateral, denominated in the borrowed asset. For example, a loan that carries 3,000 USDC in debt against cirBTC worth 10,000 USDC has an LTV of0.30. LTV rises as debt accrues interest, as the value of cirBTC falls, or
both.
Health factor
Health factor is the inverse safety measure of LTV. It equalsLLTV / LTV,
where LLTV (liquidation loan-to-value) is the market’s liquidation threshold.
The health factor tells you how close a position is to liquidation:
- Above
1.0: the position is not liquidatable. - At
1.0: the position is at the liquidation boundary. - Below
1.0: a third-party liquidator can repay part of the debt and seize collateral to bring the position back in line.
Health factor bands
The health factor maps to five bands. Use the band to drive alerts and to gate operations that would move the loan further toward liquidation.Liquidation
When a loan crosses intoLIQUIDATABLE, the underlying lending protocol lets a
liquidator repay part or all of the debt in exchange for the collateral at a
discount. Liquidation does not go through the SDK. It is a permissionless
protocol action.
Every position reports a liquidationPrice, the cirBTC price (denominated in
USDC) at which the loan would cross into LIQUIDATABLE. Show it to users so
they can act before the market reaches it.