spectra_scan_yt_arbitrage
Identify yield token arbitrage opportunities on Spectra chains by comparing IBT APR with YT implied rate. Results sorted by spread with capital-aware sizing and break-even analysis.
Instructions
Scan all Spectra chains for YT (Yield Token) arbitrage opportunities.
Compares the IBT's actual current variable APR against the rate implied by the YT's market price. When these diverge significantly, an arbitrage opportunity may exist:
Positive spread (IBT APR > YT implied rate): IBT earns more than the YT price implies
Negative spread (IBT APR < YT implied rate): IBT earns less than the YT price implies
Returns opportunities sorted by absolute spread, with capital-aware entry sizing, break-even analysis, IBT APR composition (organic base yield vs external incentive programs — critical for assessing whether the spread is driven by sustainable yield), and external Merkl campaign APR when available.
Execution mechanics:
Buying YT: The Spectra Router can flash-mint (flash-borrow IBT → mint PT+YT → sell PT on pool → user covers shortfall → user receives YT). This appears as SELL_PT in pool activity. Alternatively, minting IBT → PT+YT and selling PT separately.
Selling YT: The Router flash-redeems (borrow IBT → buy PT from pool → burn PT+YT → repay → profit). This appears as BUY_PT in pool activity. The Curve pool does NOT trade YT directly.
Break-even assumes the spread persists. Real variable rates fluctuate — spreads can close quickly. The break-even period is the minimum time needed, not a guarantee.
Use spectra_compare_yield for a detailed fixed-vs-variable breakdown on a specific pool. Use spectra_get_pool_activity to monitor recent trading patterns in the target pool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| capital_usd | Yes | How much capital (in USD) to deploy | |
| min_spread_pct | No | Minimum absolute spread (%) to surface (default 1.0) | |
| asset_filter | No | Optional: filter by underlying asset symbol (e.g., 'USDC', 'ETH') | |
| min_tvl_usd | No | Minimum pool TVL in USD (default $10,000) | |
| min_liquidity_usd | No | Minimum pool liquidity in USD (default $5,000) | |
| max_price_impact_pct | No | Filter out pools where entry impact exceeds this % (default 5) | |
| top_n | No | Number of top results to return (default 10, max 50) | |
| compact | No | If true, return one-line-per-opportunity output (much shorter). Omit for full details. | |
| ve_spectra_balance | No | Your veSPECTRA token balance. Computes the real per-pool boost using B = min(2.5, 1.5*(v/V)*(D/d)+1). Fetches live totalSupply from Base chain. |