Abax Documentation
  • 🧮Meet Abax!
    • Overview
    • Glossary
  • Lending
    • Collateral & Borrowing
    • Health Factor
    • Market Rules
    • Interest Rate Model
    • Liquidation
      • Liquidation Formula
    • Protocol Fee
  • Tokenomics
    • Abax Token
    • Public Contribution
    • Promotional Campaigns
  • How to Use Abax
    • How to Start Using Abax?
    • How Can I Make a Deposit?
    • How Do I Withdraw?
    • How Can I Borrow?
    • How Do I Repay Debt?
  • Governance
    • Governance System
  • Contracts
    • Lending Protocol
      • Lending Pool
        • Messages
          • Lending Pool Actions
          • Lending Pool Flash
          • Lending Pool Maintain
          • Lending Pool Manage
          • Lending Pool View
          • A Token Interface
          • V Token Interface
        • Storage
          • Types
          • Structs
        • Calculations
          • Interest Accumulation
          • Account Interest Accumulation
          • Rate Recalculation
          • Calculate Lending Power
        • Errors
    • Abax DAO
Powered by GitBook
On this page
  1. Lending

Health Factor

every borrower should have it understood.

PreviousCollateral & BorrowingNextMarket Rules

Last updated 1 year ago

The Health Factor(HF) in the Abax Lending Protocol is the metric of the user's position liquidation risk. The greater the Health Factor is the smaller the liquidation risk is. The value 1 is an edge constant, the positions with smaller Health Factor are suspect to liquidation.\

Collateral & Debt Powers

The calculation of the Health Factor takes into account all the user's collaterals and debts together with the asset-specific parameters. Each asset has attached two risk parameters, the Collateral Coefficient (CC) and Debt Coefficient (DC). These parameters are used to calculate Collateral Power (CP) and Debt Power (DP), which tells us the account's ability to cover debt and the requirement to cover the current account's debt.

Let A be the set of all assets available in the Abax Lending Protocol. Then:

CP=āˆ‘a∈AcollateralAmountOf(a)ā‹…priceOf(a)ā‹…CC(a)CP = \sum_{a \in A} \text{collateralAmountOf}(a)\cdot \text{priceOf}(a)\cdot\text{CC}(a)CP=a∈Aāˆ‘ā€‹collateralAmountOf(a)ā‹…priceOf(a)ā‹…CC(a)
DP=āˆ‘a∈AdebtAmountOf(a)ā‹…priceOf(a)ā‹…DC(a)DP = \sum_{a \in A} \text{debtAmountOf}(a)\cdot \text{priceOf}(a)\cdot\text{DC}(a)DP=a∈Aāˆ‘ā€‹debtAmountOf(a)ā‹…priceOf(a)ā‹…DC(a)

The Health Factor is the quotient of DD and CP:

HF=DPCPHF = \frac{DP}{CP}HF=CPDP​

Intuitively we can understand all of it in the following way. The more volatile the asset is the less Collateral Power it should provide, thus the smaller the Collateral Factor of the asset should be. The more volatile the asset is the more Debt Power it should use, thus the higher the Debt Factor should be. Users should always generate more Collateral Power than Debt Power which results in the Health Factor being greater than 1.