MagicSea Docs (v1.0)
  • Welcome
    • 🐙What is MagicSea?
    • 👋I'm New Here
    • 📺QuickStart Guide
    • 📖DeFi Glossary
    • 🌐Ecosystem
    • 🆘Support
  • Protocol
    • 🔒Wallets
    • ⛓️Multichain
    • 💱Exchange
      • ▶️Swap
        • 📺How to Swap your Tokens
      • ▶️Bridge
    • 🌊Liquidity Pools
      • ▶️Simple V2 Pools
        • 📺How to Provide Liquidity in V2 Pools
      • ▶️Concentrated LB Pools
        • Liquidity Book Strategies
        • Liquidity Book Learning
        • Dynamic Fee System
    • 💰Earn
      • ▶️Farms V2
        • 📺How to Earn Farm V2 Rewards
      • ▶️Market Maker LB Rewards
      • ▶️Staking Pools
    • 🎇Magic
      • ▶️Booster
        • 📺How to Boost your LUM to Magic LUM
      • ▶️Magic LUM Staking
      • ▶️Magic LUM Voting
    • 🖼️NFT Marketplace
      • ▶️Lumis
    • 🚀Fairlaunch
  • Tokenomics
    • 🪙Token Economics
    • 🪸LUM Token
    • 🌺Magic LUM Token
  • General Information
    • 🔗Official Links
    • 💼Business Proposals
    • 📄Smart Contracts
    • 🛡️Audits
    • 📖Disclosure
Powered by GitBook
On this page
  1. Protocol
  2. Liquidity Pools
  3. Concentrated LB Pools

Dynamic Fee System

PreviousLiquidity Book LearningNextEarn

Last updated 7 months ago

Dynamic Fee System for Liquidity Book Pools

The 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 all 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.

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

Variable Fee

🌊
▶️
​
​
Dynamic Fees on the All Pools page