Swapline
  • WELCOME
    • 👋What is Swapline?
    • ⚡Quick Start Guide
    • 💬Contact Us
    • 🆘Support
  • FEATURES
    • 🔄Trade
      • Swap
      • Native Limit Orders
    • 💰Earn
      • Liquidity Book Pools
      • Liquidity Strategies
      • Liquidity Book Learning
        • Liquidity Book vs Uniswap V3
      • Dynamic Fee System
      • Auto Pools
      • Yield Farms
      • Staking Pools
    • 📩Vote
    • 🤝Fairlaunch
  • DEVELOPMENT
    • 📃Smart Contracts
    • 🔐Audit
Powered by GitBook
On this page
  • Base Fee​
  • Variable Fee​
  1. FEATURES
  2. Earn

Dynamic Fee System

PreviousLiquidity Book vs Uniswap V3NextAuto Pools

Last updated 8 months ago

Our dynamic fee system adjusts fees during volatile situations to reduce and compensate for possible impairment loss.

Base Fee

You can see the base fee of each pool on the liquidity pools page. The exact percentage is set by the protocol owner when creating the pool.

The variable fee on the other hand depends on the volatility of the market. It will be affected by the frequency of the swaps, but doing large swaps accross many bins (on large price movements) will also increase it. Fees are calculated and distributed per bin, to allow a fair distribution of the fee to the liquidity providers of the bin crossed.

Variable Fee

Fees are calculated iteratively as each bin is crossed (if the swap is large enough). In other words, if a large swap crosses nnn bins, then the total swap fee is calculated per bin kkk, where kkk is the difference in bin IDs from the initial bin where the swap originated and the current bin in which it is being calculated.

💰
​
​
Dynamic Fee System