Arch Swap
  • START
    • What is Arch?
    • Tokenomics
    • Socials & Links
    • FAQ
      • Impermanent Loss
      • Liquidity & Yield Farming
        • V3
        • V4
  • PROTOCOL
    • Core Logic
      • Pool Overview
      • Swap Calculation
      • Liquidity and Positions
        • Liquidity Guide
        • Creating New Pools
      • Ticks
      • Reserves
      • Flashloans
    • AMM V3
      • Referrals
    • AMM V4
    • Incentives
  • Contracts
    • Arch
    • Algebra
    • Botanix
Powered by GitBook
On this page
  1. PROTOCOL
  2. Core Logic

Flashloans

Flashloans are a special type of borrowing that allows users to borrow tokens in arbitrary amounts to be returned along with fees in a single transaction, without having to provide any collateral or guarantees.

Algebra Integral allows borrowing tokens from pools - a user can request a number of tokens from a pool up to the pool's balance. Flushloan fees will be distributed to active liquidity positions. In addition, any excess tokens that were transferred in the callback above the requested The amount will also be distributed to active liquidity providers as a fee. If there is currently no active liquidity, the collected commission will go to the first liquidity positions that become active in the future.

It is important to note that not only active liquidity is available to receive flashloan, but the entire token balance available to the pool.

Flashloan utilizes a callback mechanism. When creating your own implementation of a contract that uses flashloan Algebra Integral, you should check that the contract causing the callback is actually the expected Algebra Integral pool.

The functionality of flashloan ( flash) can be extended by plugins that use appropriate hooks: beforeFlashand afterFlash.

PreviousReservesNextAMM V3

Last updated 6 months ago