Vessel
  • ⚓Introducing Vessel
    • Why Vessel Is The Exchange Crypto Needs?
    • Vessel's Roadmap for the Future of DeFi
  • ⚙️Technical Deep Dive
    • Sequencer
    • Prover
    • Contract
    • Data Availability
  • 💰VAELOB
    • Terminology
    • Order Book and AMM: Can We Have the Best of Both?
    • A Typical Trade in Vessel
    • Liquidity Pool Math
    • Concentrated Liquidity
    • Fee Calculation
    • Multi-Pool with Different Tick Spacing
  • 🎁Vessel Voyage
    • Vessel Mileage for Liquidity Providing
    • Vessel Coins for Referral
  • 🛳️Mainnet User Guide
    • Set up a Wallet
    • Deposit
    • Provide Liquidity to Vessel’s VAELOB
      • Access the Liquidity Pools
      • Add Liquidity
      • View Positions
      • Manage Positions
    • Trade
      • Order Types
      • Place Order
      • Cancel Order
      • Modify Order
      • Trading History
    • Internal Transfer - Send to Vessel's User
    • Withdraw Your Assets
    • Fees
      • Trading Fee
      • Gas Fee
      • AMM Fee
    • Trading Settings
  • 🛥️Testnet User Guide
    • Log in with Invitation Code
    • Setting up a Wallet
    • Switching Network
    • Funding Your Wallet
    • How to Deposit
    • How to Trade
    • How to Withdraw
    • Community Contribution
    • Vessel’s Referral Program
    • FAQs
  • 🗺️Smart Contract Deployments
  • 🐚Vessel Community Hub
    • Vessel Community Update: Q1 2024
    • Vessel Community Update: Q2 2024
    • Vessel Community Update: Q3 2024
  • 🎨Brand Kit
Powered by GitBook
On this page
  • Introduction
  • Example: Add Liquidity
  1. VAELOB

Concentrated Liquidity

PreviousLiquidity Pool MathNextFee Calculation

Last updated 10 months ago

Introduction

VAELOB represents an innovation beyond Uniswap v3, taking a significant step forward in enhancing capital efficiency. Similar to Uniswap v3, it supports a concentrated liquidity provision strategy within AMM pools, enabling LPs to choose any consecutive intervals for their liquidity contributions. This strategy of concentrating liquidity within targeted price ranges has been successful in notably improving market depth. Such an approach is expected to enhance the user experience for order book traders on Vessel, consequently leading to a substantial increase in both fees and spread rewards for liquidity providers.

Example: Add Liquidity

To better understand how Vessel enables concentrated liquidity provision, let's go through a practical example.

Assume we have an ETH/USDT liquidity pool with a tick spacing of $1, and the current interval lies at [$3800, $3801]. This means the pool manages its liquidity by placing buy orders below $3800 and sell orders above $3801.

  1. For intervals below $3800: USDT is needed to place buy orders, totaling:

  1. For intervals above $3800: ETH is needed to place sell orders, totaling:

  1. For the current interval [$3800, $3801]: Both USDT and ETH are required to provide liquidity proportionally to the current left-side and right-side order sizes:

Summing these values gives the total assets required for Bob's position:

Suppose Bob wants to add liquidity to this pool. He intends to create a position with TickL=3500Tick_L=3500TickL​=3500, TickR=4100Tick_R=4100TickR​=4100, L=0.01L=0.01L=0.01, meaning he wants to add 0.01 ETH liquidity to each interval within the range [$3500, $4100]. To determine the assets needed for this position, we perform the following calculations:

l1=∑i=35003799(i×0.01)=10948.5 USDTl1=\sum_{i=3500}^{3799} (i \times 0.01) = 10948.5 \text{ USDT}l1=i=3500∑3799​(i×0.01)=10948.5 USDT
l2=(4100−3801)×0.01=2.99 ETHl2=(4100-3801)\times 0.01=2.99 \text{ ETH}l2=(4100−3801)×0.01=2.99 ETH
l3left=3800×0.01×25=14.2 USDTl3_{left}=3800\times 0.01 \times \frac{2}{5}= 14.2 \text{ USDT}l3left​=3800×0.01×52​=14.2 USDT
l3right=0.01×35=0.006 ETHl3_{right}=0.01 \times \frac{3}{5}=0.006 \text{ ETH}l3right​=0.01×53​=0.006 ETH
total=(l1+l3left) ETH+(l2+l3right) USDT=2.996 ETH+10962.7 USDTtotal=(l1+l3_{left}) \text{ ETH} + (l2+l3_{right}) \text{ USDT} = 2.996 \text{ ETH} + 10962.7 \text{ USDT}total=(l1+l3left​) ETH+(l2+l3right​) USDT=2.996 ETH+10962.7 USDT
💰
Concentrated Liquidity
New Position in Liquidity Pool