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

Collateral & Borrowing

PreviousLendingNextHealth Factor

Last updated 1 year ago

Users need to choose the by calling chosen rule. The specify the parameters of loans. The rules concern which assets can be used as collateral, which can be borrowed, and what coefficients assets have while calculating the .

Depending on the market rule, assets have different Collateral Coefficients and Borrow Coefficients. At all times, the must be greater than 1, otherwise, liquidation can happen.

Once the rule is chosen, the user can deposit an asset that was registered by the market owner. If the borrowing is enabled for the asset then the user is earning the proportional part of interest paid by borrowers.

At any time a user can redeem the deposited assets. After redeeming, the must be greater than 1, otherwise, the call will fail.

If the asset is specified by the user-chosen rule as collateral, the user can mark it as collateral by calling set as collateral.

If a user has deposited some assets and marked at least one as a collateral then the user can borrow, by calling borrow, any asset that is allowed for borrowing by the user-chosen rule. The users' debt is increasing with time as interest is accumulating.

At any time user can repay any debt the user has taken by calling repay.

If at any time, due to accumulation of interests or assets price oscillations, the user position coefficient becomes equal or smaller than 1, anyone can the user's position by calling liquidate. The liquidator pays part of the user's debt and gets the right part of the user's collateral. The value of the revived collateral by the liquidator is higher than the value of the debt he is repaying. In this way, liquidators are rewarded and users who have managed their position wrongly are punished. The penalty/reward is proportional to the amount of the liquidated debt and the penalty parameter specified for each asset by .

market rule
market rules
Health factor
Health Factor
Health Factor
Health Factor
liquidate
market rules