$npx -y skills add agiprolabs/claude-trading-skills --skill dex-pool-analysisAMM pool mechanics comparison across Raydium, Orca, and Meteora including fee structures, pool types, creation patterns, and volume efficiency
| 1 | # DEX Pool Analysis — Solana AMM Pool Mechanics & Comparison |
| 2 | |
| 3 | Solana's DEX ecosystem spans multiple AMM designs: constant-product pools (Raydium V4), concentrated liquidity (Raydium CLMM, Orca Whirlpool), and bin-based liquidity (Meteora DLMM). Each pool type has distinct fee structures, capital efficiency characteristics, and risk profiles. Understanding these differences is essential for selecting the best execution venue, evaluating liquidity quality, and identifying pool-level risks. |
| 4 | |
| 5 | This skill covers: |
| 6 | - Pool type mechanics and fee structures across Solana DEXes |
| 7 | - Pool health metrics (TVL, volume efficiency, fee APR, LP count) |
| 8 | - Pool creation patterns (PumpFun graduation, manual creation) |
| 9 | - Best pool selection for trade execution |
| 10 | - Pool age and risk assessment |
| 11 | |
| 12 | **Related skills**: See `lp-math` for AMM formulas, `liquidity-analysis` for depth assessment, `impermanent-loss` for LP risk, `slippage-modeling` for execution cost. |
| 13 | |
| 14 | --- |
| 15 | |
| 16 | ## 1. Pool Types on Solana |
| 17 | |
| 18 | ### Raydium V4 (Constant Product) |
| 19 | |
| 20 | The most common pool type for newly launched tokens. Uses the classic `xy = k` invariant with a fixed 0.25% swap fee. Integrated with OpenBook (formerly Serum) for combined AMM + orderbook liquidity. |
| 21 | |
| 22 | ``` |
| 23 | Program ID: 675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8 |
| 24 | Fee: 0.25% per swap (0.22% to LPs, 0.03% to RAY buyback) |
| 25 | ``` |
| 26 | |
| 27 | **Key characteristics**: |
| 28 | - Full-range liquidity (infinite price range) |
| 29 | - Simple LP provisioning — deposit both tokens in equal value |
| 30 | - Lower capital efficiency than concentrated liquidity |
| 31 | - OpenBook market ID required for pool creation |
| 32 | |
| 33 | ### Raydium CLMM (Concentrated Liquidity) |
| 34 | |
| 35 | Concentrated Liquidity Market Maker pools allow LPs to specify price ranges, improving capital efficiency by 10-100x compared to V4. |
| 36 | |
| 37 | ``` |
| 38 | Program ID: CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK |
| 39 | Fee tiers: 0.01%, 0.05%, 0.25%, 1%, 2% |
| 40 | Tick spacing: 1, 10, 60, 120, 240 (corresponding to fee tiers) |
| 41 | ``` |
| 42 | |
| 43 | **Key characteristics**: |
| 44 | - LPs choose min/max price for their position |
| 45 | - Positions represented as NFTs |
| 46 | - Higher fee income per dollar deposited (when in range) |
| 47 | - Risk of position going out of range (no fees earned) |
| 48 | - Multiple fee tiers for different volatility profiles |
| 49 | |
| 50 | ### Orca Whirlpool (Concentrated Liquidity) |
| 51 | |
| 52 | Orca's concentrated liquidity implementation, dominant for major token pairs (SOL/USDC, SOL/USDT). |
| 53 | |
| 54 | ``` |
| 55 | Program ID: whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc |
| 56 | Fee tiers: 0.01%, 0.02%, 0.04%, 0.05%, 0.16%, 0.30%, 0.65%, 1%, 2% |
| 57 | Tick spacing: 1, 2, 4, 8, 16, 64, 128, 256, 512 (varies by fee) |
| 58 | ``` |
| 59 | |
| 60 | **Key characteristics**: |
| 61 | - Positions as NFTs (similar to Uniswap V3) |
| 62 | - Wide fee tier selection for granular control |
| 63 | - Strong SDK and developer tooling |
| 64 | - Dominant for blue-chip Solana pairs |
| 65 | |
| 66 | ### Meteora DLMM (Dynamic Liquidity Market Maker) |
| 67 | |
| 68 | Bin-based liquidity where each bin holds a fixed price. LPs distribute liquidity across bins using strategy modes. |
| 69 | |
| 70 | ``` |
| 71 | Program ID: LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo |
| 72 | Fee: Dynamic (base fee + variable fee based on volatility) |
| 73 | Bin step: 1-100 basis points per bin |
| 74 | ``` |
| 75 | |
| 76 | **Key characteristics**: |
| 77 | - Discrete price bins instead of continuous ticks |
| 78 | - Dynamic fees that increase during high volatility |
| 79 | - Strategy modes: Spot, Curve, Bid-Ask |
| 80 | - Zero slippage within a single bin |
| 81 | - Extremely capital efficient for stablecoin pairs |
| 82 | |
| 83 | ### Meteora Dynamic Pools |
| 84 | |
| 85 | Multi-token pools with single-sided deposit capability and volatility-adjusted fees. |
| 86 | |
| 87 | ``` |
| 88 | Program ID: Eo7WjKq67rjJQSZxS6z3YkapzY3eMj6Xy8X5EQVn5UaB |
| 89 | Fee: Volatility-based dynamic fee |
| 90 | ``` |
| 91 | |
| 92 | **Key characteristics**: |
| 93 | - Single-sided deposits allowed |
| 94 | - Dynamic fee based on recent price volatility |
| 95 | - Multi-token pool support |
| 96 | - Simpler LP experience than concentrated liquidity |
| 97 | |
| 98 | ### PumpSwap (PumpFun AMM) |
| 99 | |
| 100 | PumpFun's native AMM for tokens that graduate from the bonding curve. |
| 101 | |
| 102 | ``` |
| 103 | Program ID: PSwapMdSai8tjrEXcxFeQth87xC4rRsa4VA5mhGhXkP |
| 104 | Fee: 0.25% per swap (0.20% to LPs, 0.05% protocol) |
| 105 | Migration fee: 0 SOL (post-March 2025) |
| 106 | ``` |
| 107 | |
| 108 | **Key characteristics**: |
| 109 | - Constant-product (`xy = k`) mechanics |
| 110 | - Automatic migration from PumpFun bonding curve at ~$69K market cap |
| 111 | - Creator coin rewards (10% of protocol fees to coin creators) |
| 112 | |
| 113 | --- |
| 114 | |
| 115 | ## 2. Fee Structure Comparison |
| 116 | |
| 117 | | DEX | Pool Type | Fee Range | LP Share | Protocol Share | |
| 118 | |-----|-----------|-----------|----------|----------------| |
| 119 | | Raydium V4 | Constant Product | 0.25% fixed | 0.22% | 0.03% (RAY) | |
| 120 | | Raydium CLMM | Concentrated | 0.01%–2% | ~84% | ~16% | |
| 121 | | Orca Whirlpool | Concentrated | 0.01%–2% | 87% | 13% | |
| 122 | | Meteora DLMM | Bin-based | Dynamic | 80% | 20% | |
| 123 | | Meteora Dynamic | Dynamic | Variable | ~80% | ~20% | |
| 124 | | PumpSwap | Constant Product | 0.25% fixed | 0.20% | 0.05% | |
| 125 | |
| 126 | **Fee tier selection guidance**: |
| 127 | - **0.01%**: Stablecoin pairs (USDC/USDT) — minimal price movement |
| 128 | - **0.05%**: Correlated assets (mSOL/SOL, jitoSOL |