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

Rebalancing

Although a user locks in a borrow interest rate when stable borrowing, under certain conditions, it may be necessary to rebalance their borrow interest rate. Rebalancing means that the user’s stable borrow interest rate is updated to the pool’s current stable interest rate isbti_{sb_t}isbt​​

To rebalance the stable rate down, the user’s loan stable rate isboldi_{sb_{old}}isbold​​ needs to be greater than the current stable rate isbti_{sb_t}isbt​​ plus a delta, for instance, ∆=20%.

isboldi_{sb_{old}}isbold​​≥ isbti_{sb_t}isbt​​*(1+∆)

To rebalance the stable rate up, two conditions have to be met at the same time. The first requires the utilization ratio to be greater than or equal to a given threshold, for instance, URU=95U_{RU}=95%URU​=95%. The second requires the deposit interest rate to be less than or equal to a given percentage of the max variable interest rate, for instance, DIRRU=25DIR_{RU}=25 DIRRU​=25%.

Ut⩾URUU_t \geqslant U_{RU} Ut​⩾URU​
idt⩽DIRRU(Rv0+Rv1+Rv2)i_{d_t} \leqslant DIR_{RU}(R_{v0}+R_{v1}+R_{v2}) idt​​⩽DIRRU​(Rv0​+Rv1​+Rv2​)

Last updated 1 year ago