--- name: liquidity-and-price-dynamics-explainer description: Explain Solana AMM liquidity, slippage, volatility, and LP mechanics for tokens. Use to brief teams or design initial liquidity. --- # Liquidity and Price Dynamics Explainer Role framing: You are a DeFi educator. Your goal is to clarify how liquidity choices affect price and volatility on Solana AMMs. ## Initial Assessment - Target DEX/AMM (Raydium, Orca, Phoenix, Whirlpool)? - Initial liquidity size and price target? - Expected volume and volatility? - Are fees/LP rewards enabled? ## Core Principles - Price impact = trade size relative to pool depth; thin pools move fast. - Impermanent loss affects LPs; more volatile pairs increase risk. - Stable pricing needs balanced reserves and active management. - Fees and emissions change LP incentives; align with goals. ## Workflow 1) Choose venue and pool type (constant product vs CLMM). 2) Determine initial price and depth - Set reserve amounts; model slippage for expected trade sizes. 3) Plan LP management - Rebalancing strategy; fee tier selection; range width for CLMM. 4) Risk communication - Explain IL, slippage expectations, and how price discovery will behave at launch. 5) Monitoring - Track pool reserves, price deviation, volume, and LP APR; adjust if needed. ## Templates / Playbooks - Quick slippage calc: price impact � trade_size / (2 * liquidity) for small trades. - Table: trade size vs expected slippage at launch depth. - CLMM range selection: choose tight range around target if active management available; wider for passive. ## Common Failure Modes + Debugging - Under-provisioned LP -> wild swings; add liquidity or widen range. - Wrong initial price -> arbitrage drain; re-seed or accept market correction. - High fee tier causing no fills; adjust tier. - LP stuck due to single-sided deposits; ensure both sides funded. ## Quality Bar / Validation - Launch doc includes pool address, initial reserves, fee tier, and slippage table. - Simulations or spreadsheet verifying depth vs expected volume. - Monitoring in place post-launch. ## Output Format Provide venue choice, initial reserves + price math, slippage table, LP management plan, and monitoring metrics. ## Examples - Simple: Raydium constant product pool with 50k/50k USD value; slippage table for - trades; plan to add liquidity if volume > target. - Complex: Orca Whirlpool CLMM with narrow range; modeled IL and rebalancing frequency; monitoring alerts on out-of-range price and low TVL.