spectra_compare_yield
Compare fixed yield from PT against variable yield of underlying IBT to decide if locking a fixed rate is worthwhile. Accounts for entry costs and LP alternatives.
Instructions
Compare Spectra's fixed yield (via PT) against the variable yield of the underlying interest-bearing token. Helps users decide if locking in a fixed rate is worthwhile versus staying in the variable-rate position.
Protocol context:
Fixed rate is labeled "implied APY" (annualized, compounded). Variable rate is labeled "IBT APR" (not compounded). LP yield is labeled "LP APY". Each is labeled at point of use.
Entry cost (price impact) is amortized over days to maturity.
LP alternative: providing liquidity earns trading fees + SPECTRA gauge emissions.
Output surfaces competing interpretations when the data is ambiguous — e.g., positive raw spread but negative effective spread after entry cost, or incentive-dominated variable rate.
Use spectra_get_looping_strategy to lever up the fixed yield via Morpho. Use spectra_get_portfolio to check your current positions. Use spectra_scan_opportunities for multi-chain comparison.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | The blockchain network | |
| pt_address | Yes | The PT contract address to compare | |
| ve_spectra_balance | No | Your veSPECTRA token balance. Computes real boost using B = min(2.5, 1.5*(v/V)*(D/d)+1). | |
| capital_usd | No | Your deposit size in USD (default $10,000). Used with ve_spectra_balance to compute per-pool boost. |