Overview
Theavalanche.dex.events table provides a clean, protocol-agnostic schema for DEX liquidity events on Avalanche. This unified approach allows you to analyze liquidity patterns across different DEX protocols using consistent semantics.
Purpose: One clean, protocol/chain agnostic schema for DEX liquidity events.Design:
- Protocol-agnostic core
- Event-agnostic semantics
- Ownership is normalized through LP unit
- Event-specific bits go in
event_details(variant) - Liquidity specific details goes in
liquidity_details(variant)
initialize_pool | add_liquidity | remove_liquidity | swap_tokensThis table is in active development and currently available for Avalanche only.
Table Columns
- Event & Transaction Context
- Pool Details
- LP Unit
- Token Details
- Liquidity Placement
Protocol Examples
Uniswap V2 Family
Protocols: Uniswap V2, Pangolin V2, Pharaoh, BlackholeUniswap V3 Family (CLMM)
Protocols: Uniswap V3, Pangolin V3Trader Joe Liquidity Book (LB)
Protocols: Trader Joe LB v2/2.1/2.2Notes
- Protocol Coverage: Currently supports Uniswap V2/V3, Blackhole, Pangolin V2/V3, Pharaoh, Trader Joe LB, and other major Avalanche DEX protocols
- USD Values: USD amounts are calculated using token prices at the time of the event
- Event Scope:
positionfor individual positions,poolfor pool-wide events
Use Cases
- Track liquidity provision and removal patterns across protocols
- Monitor individual LP positions and their performance
- Compare liquidity patterns between different DEX protocols
- Analyze concentration and distribution of liquidity
- Build comprehensive DEX analytics dashboards