spectra_get_pool_capacity
Simulates PT swaps or LP deposits at increasing capital sizes to show price impact and APY degradation, revealing pool capacity limits.
Instructions
Analyze a pool's capacity by quoting PT trades at increasing capital sizes.
Shows how price impact and effective APY degrade as capital grows, helping curators and large deployers find the sweet spot (max capital with acceptable impact) and the exhaustion point (where APY collapses).
Two modes: "pt_buy" (default): Measures PT swap impact via Curve get_dy(). Shows how much capital can be deployed as a directional PT buyer before slippage degrades APY. "lp_add": Measures LP deposit impact. LP deposits add liquidity to BOTH sides of the pool, deepening it rather than consuming it. Impact is near-zero for balanced deposits. Shows pool share concentration and post-deposit pool depth. USE THIS MODE for MetaVault curator capacity analysis — curators deploy as LP.
Each tier is quoted independently (not cumulative). Real execution across multiple txns would face additional impact from pool state changes.
Output surfaces a capacity framing note: pt_buy mode measures directional swap impact, but MetaVault curators deploy as LP where entry impact is near-zero and the constraint is pool share concentration. Use lp_add mode for curator capacity analysis.
On-chain quotes use the actual Curve StableSwap-NG amplification parameter. Set use_on_chain=false for math-only estimates (faster, more conservative).
Use spectra_quote_trade for a single exact quote at a specific amount. Use spectra_scan_opportunities for capital-aware ranking across all pools. Use mv_check_ibt_health to verify the underlying IBT before deploying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | The blockchain network | |
| pt_address | Yes | The PT contract address (0x...) | |
| steps | No | Number of capital tiers in the ladder (default 8, max 12) | |
| max_capital_usd | No | Upper bound of the capital ladder in USD (default $1,000,000) | |
| use_on_chain | No | Try on-chain Curve get_dy() quotes (default true). Set false for math-only estimates. | |
| mode | No | Analysis mode: 'pt_buy' for PT swap impact (default), 'lp_add' for LP deposit impact (MetaVault curators). | pt_buy |