Folks Finance
xChain App (NEW)Algorand AppContact usV1 Docs
  • Welcome to Folks Finance
  • Folks Finance Algorand app documentation
  • Introduction
    • Get started
      • Create a wallet
      • Get ALGO or ASAs
      • Connect wallet to Folks Finance
    • V2, what's new?
    • Need help?
      • Contact
      • Glossary
      • FAQ
      • Fees
      • Allowing pop-up
    • V2 Testnet tips
  • Functionalities
    • 🏦Deposit
    • πŸ’°Loan
      • Collateral
      • Borrow
    • πŸ”„Swap and...
    • πŸ›οΈxALGO - Liquid Staking
      • How to Migrate from gALGO to xALGO
    • 🚜Lending Pools
    • πŸ“ˆUltraswap
    • πŸ›£οΈFolks Router
    • πŸ”—Algorand Consensus
      • No code
      • SDK
  • Architecture
    • Parameters
    • Pool dynamics
    • Interest rate model
    • Rebalancing
    • Loan collateral
    • Loan borrow
    • Liquidation
    • Loan types
    • Flash loan
  • TOKENOMICS
    • FOLKS
  • DEVELOPER
    • Security
      • Bug bounty
      • Audits
    • Contracts
    • Official SDKs
  • COMMUNITY
    • Contact
    • Work with us
    • Ambassador program
    • Brand & Logos
    • Community treasury
    • Aeneas liquidity program
    • Privacy and T&C
Powered by GitBook
On this page
  1. Architecture

Liquidation

When the total borrowed TBtTB_tTBt​ exceeds the borrowable amount BAtBA_tBAt​, the loan can be liquidated by a third party:

TBt>BAtTB_t>BA_t TBt​>BAt​

When a third party liquidates a loan, they select a single borrow to repay and a single collateral to seize. The maximum amount CCC, they can liquidate is given as a percentage liquidation.maxliquidation.maxliquidation.max (e.g. 50%) of the borrow balance BBtBB_tBBt​​:

Cβ©½BBtβˆ—liquidation.maxC\leqslant BB_t*liquidation.max Cβ©½BBtβ€‹βˆ—liquidation.max

To incentivise third parties to liquidate other users’ under-collateralized loans, a liquidation bonus liq.bonusliq.bonusliq.bonus is earned. If there is insufficient balance of the chosen collateral, then at most the full collateral balance will be seized.

A portion of the liquidation bonus is kept by the protocol as revenue, as determined by the liquidation fee liq.feesliq.feesliq.fees, Any remaining collateral that is not retained by the protocol, will be earned by the liquidator.

Last updated 1 year ago