📚
Duality Documentation
  • What is Duality?
  • Concepts
    • AMMs and Orderbooks
    • Liquidity Pools
    • Ticks
    • TickLiquidity
      • Pool Reserves
        • Fees
      • Limit Order Tranches
    • Liquidity Iteration
    • Swaps
    • Overview
  • Module Documentation for Developers
    • DEX Module
      • Transaction Messages
        • Deposit
        • Withdrawal
        • MultiHop Swap
        • Place Limit Order
        • Cancel Limit Order Message
        • Withdraw Filled Limit Order
      • Queries
  • Dictionary
  • Advanced Concepts
    • Replicating Market Makers
    • Shared Liquidity
  • User Interface
Powered by GitBook
On this page
  1. Concepts

TickLiquidity

An overview of TickLiquidity on duality

TickLiquidity structs are used to store liquidity within the Dex. Each tick has a specific price and holds liquidity for a single token. TickLiquidity come in two general types – PoolReserves for storing LP positions and LimitOrderTranches for storing maker limit orders. Both types of ticks share several common fields: PairID, TokenIn, TickIndex. PairID refers to the trading pair for which a given tick is used. TokenIn denotes which side of the TradingPair a tick holds liquidity for.

PreviousTicksNextPool Reserves

Last updated 1 year ago