🦓
Zebra Docs
  • 🏠HOME
  • 💡Overview
    • About Zebra
    • Roadmap
    • Contact Us
  • 🧭Product Guides
    • How to Set Up Scroll Wallet
    • How to cross-chain assets to Scroll Mainnet
  • 1️⃣V1 guide
    • How to Swap
    • How to Add Liquidity
    • How to Create a Liquidity
  • 2️⃣V2 guide
    • How to migrate liquidity from Zebra v1 to v2
    • 🎯V2 Liquidity Guidelines
      • How to add a liquidity
      • How to remove liquidity from V1
      • 🚀Getting started with V2
        • Why is liquidity position ownership represented by tokens or NFTs?
        • How to collect fees from a liquidity pool on Zebra v2
  • ❓Q&A
    • Do I get "liquidated" if the price goes outside of my range?
    • Why is my liquidity position not evenly split between the two tokens?
    • How to change the price range of a liquidity position
    • Why does the price input automatically round?
    • What are fee tiers?
    • What is a liquidity provider (LP) fee?
  • 🦓Product
    • Swap
    • Fees
  • 🔐Contracts and Security
    • Contracts
    • Security Audit
  • 🗃️OTHERS
    • Media
    • FAQ
Powered by GitBook
On this page
  1. V2 guide
  2. V2 Liquidity Guidelines
  3. Getting started with V2

Why is liquidity position ownership represented by tokens or NFTs?

When a liquidity position is created, it is represented by Liquidity Provider (LP) Tokens or a NFT. The wallet address that owns the LP tokens or NFT is the owner of the liquidity position.

Zebra v1 represents liquidity positions using Zebra LP Tokens. These tokens are deposited in your wallet when you add v1 liquidity. The amount of tokens represents how much liquidity you added.

Zebra v2 represents liquidity positions using an NFT, in order to store all of the liquidity position data. This NFT is deposited in your wallet when you add v2 liquidity.

The full data that is stored in this NFT is:

  • Nonce (used for tracking permit nonces)

  • The operator (normally a 0 address, unless you have given permission to another to manage the liquidity)

  • Token0 address (address of the first token in the pool)

  • Token1 address (address of the second token in the pool)

  • The pools fee tier (the chosen fee tier of your pool)

  • The Lower Tick (the low price boundary of the position)

  • The Upper Tick (the upper price boundary of the position)

  • Your liquidity value (the value of the liquidity in the position)

  • feeGrowthInside0LastX128 (used for Fee tracking on token0)

  • feeGrowthInside1LastX128 (used for Fee tracking on token1)

  • tokensOwed0 (only used as a temporary value)

  • tokensOwed1 (only used as a temporary value)

PreviousGetting started with V2NextHow to collect fees from a liquidity pool on Zebra v2

Last updated 1 year ago

2️⃣
🎯
🚀