LogoLogo
V2 DocsV2 dApp
English 🇬🇧
English 🇬🇧
  • Welcome to Folks Finance official documentation!
  • Getting started
  • HOW TO
    • Deposit
    • Lock & Earn
    • fStaking
    • Withdraw
    • Borrow
    • Rebalance
    • Repay
    • Rewards aggregator
    • Algo Liquid Governance
      • Algo Liquid Governance - G3
  • User profile
    • Dashboard
    • History
    • Notifier
  • Developer
    • Contracts
    • Official SDKs
  • Protocol architecture
    • Overview
      • Liquidity pool dynamics
      • Interest rates model
      • Interest accrual
      • Deposit
      • Withdraw
      • Borrow
      • Slippage
      • Liquidation
      • Algo Liquid Governance
      • Incentive system
      • fStaking
      • Token types
  • Security
    • Audits
    • Bug bounty
  • Support
    • FAQ
    • Glossary
    • Fees
  • helpful guides
    • Creating a My Algo Wallet
    • Buying Algo using FIAT - CEXs guide
    • Buying Algo with FIAT - Pera wallet/MyAlgo wallet guide
    • Allowing pop-up
    • Folks Finance's Testnet
  • Community
    • What can I do with gALGO?
    • Aeneas liquidity program
    • Contact
    • Community treasury
    • FOLKS
  • Legal
    • Privacy Policy
    • Terms & Conditions
    • Disclaimer
Powered by GitBook
On this page
  • Liquidation Margin
  • Liquidators

Was this helpful?

  1. Protocol architecture
  2. Overview

Liquidation

The liquidation mechanism ensures the protocol’s safety by liquidating undercollateralized debts.

PreviousSlippageNextAlgo Liquid Governance

Last updated 2 years ago

Was this helpful?

A loan position is liquidated when the users' borrow balance BBtBB_ t BBt​ is greater than or equal to the , as a result, the Liquidation Margin is equal to zero.

Liquidation Margin

The Liquidation Margin is an index that has been designed to make sure the user understands how close liquidation is. The Liquidation Margin of a certain borrow is expressed at each time ttt as follows:

LMt=1−BBtTtLM_t =1- \frac{BB_t}{T _t} LMt​=1−Tt​BBt​​

Where:

Tt=At∗S2∗RBorrowedAssetDepositedAssettT_t=A_t*S2*R_{\frac{BorrowedAsset}{DepositedAsset}_t} Tt​=At​∗S2∗RDepositedAssetBorrowedAsset​t​​

RBorrowedAssetDepositedAssettR_{\frac{BorrowedAsset}{DepositedAsset}_t} RDepositedAssetBorrowedAsset​t​​is the ratio between the borrowed and deposited asset value.

The Liquidation margin should give you an indication of how close you are to being liquidated. The closer the value is to zero the closer the liquidation

Liquidators

The liquidators are bots used by third parties that detect the undercollateralized position and liquidate them. The liquidation can be operated on the whole amount of the loan position or just a part of it. Liquidators are incentivized to purchase the collateral at a lower price at the borrower's expense.

Example

Due to collateral fluctuation or unpaid interest, the Liquidation Margin reaches the value of zero. So, the liquidator:

1.1 - asks for liquidation

1.2 - repays the borrowed amount plus the accrued interest

1.3 - receives the amount of fToken used as collateral by the borrower

2.1 - sends the fToken to the protocol

2.2 - receives the amount of token originally deposited by the borrower plus the interest accrued

TtT_t Tt​ represents the . It is computed as follows:

BBtBB_t BBt​ represents the borrow balance of the user, which is composed of the borrowed amount, plus the accrued and unpaid .

Folks Finance runs the community liquidators. The total profits from this operation are deposited into the .

An open-source package is published on the official Folks Finance to allow anyone to build their own liquidator.

interests
community treasury
SDK
GitHub
under-collateralization threshold
under-collateralization threshold