Why This Matters
DeFi yields are typically variable-rates fluctuate based on market conditions, making it difficult for users to plan ahead. Fixed Earn products solve this by letting users generate a known APY for a set period, similar to traditional fixed-income instruments. Building Fixed Earn products yourself means integrating yield protocols, managing expiry dates, handling slippage on swaps, and tracking position values. We’ve done that. You get one API that handles all the complexity, and works seamless with other DeFi products you built with Compass SDK.What It Does
Let users deposit stablecoins and crypto assets into Pendle Principal Token (PT) positions to generate fixed rates for periods ranging from 30 to 180+ days. Users know exactly how much they’ll earn upfront, making it ideal for treasury management, yield planning, or conservative DeFi strategies. You call our API, we return a transaction payload. You or your users sign and broadcast. Users earn predictable returns, you capture fees. Important: Users must first create an Earn Account before depositing into Fixed Earn positions.How Fixed Earn Works
Pendle splits yield-bearing tokens into two components:- Principal Token (PT): Represents the principal amount, trades at a discount to the underlying. At maturity, redeems 1:1 for the underlying asset.
- Yield Token (YT): Represents future yield, which we don’t expose in this product.
- Their tokens (e.g., USDC) get swapped for the discounted PT
- The PT is held in their Earn Account
- The PT can be redeemed 1:1 for the underlying asset
Supported Chains
Fixed Earn positions are available on Ethereum, Arbitrum, and Base.Discover Fixed Earn Opportunities
Markets have expiry dates (30, 60, 90, 180 days, or longer). Use the List Pendle Markets endpoint to find active markets with their current APYs and expiry dates. Find active Pendle markets with the best fixed rates. Filter by chain and asset, sort by TVL or implied APY: The response includes for each market:market_address- Use this for depositschain- Blockchain networkunderlying_asset,underlying_symbol,underlying_name- The asset detailspt_address- Principal Token addresssy_address,yt_address- Standardized Yield and Yield Token addressesimplied_apy- The fixed rate users generate (as a percentage)tvl_usd- Total Value Locked in USDexpiry- Market maturity timestamp (Unix epoch seconds)
Deposit into Fixed Earn Positions
Deposit USDC into a Fixed Earn position on Base. This example deposits 1 USDC from the owner’s Earn Account into the Pendle PT market without embedding a fee and without gas sponsorship: Key parameters:market_address: Get this from the List Pendle Markets endpointtoken: The asset you’re depositing (e.g., “USDC” or token address)max_slippage_percent: Maximum acceptable slippage for the PT swap (default: 1%)amount: Amount to deposit in the token’s decimals (e.g., “1” = 1 USDC)
Track Fixed Earn Positions
Check your users’ active Fixed Earn positions, including current value, cost basis, unrealized PnL, and time until maturity: The response includes for each Fixed Earn position:- Market details: Market address, PT address, underlying asset, chain
- Position value:
amount_in_underlying_token(current redemption value) - Expiry: Unix timestamp when PT can be redeemed 1:1
- PnL breakdown:
cost_basis: Total deposited (in USD)unrealized_pnl: Expected profit at maturity (current value - cost basis)net_deposits: Total deposits minus withdrawalstotal_yield_earned: Accrued fixed earnings so far
Use Cases
Conservative Earn Product: Build a “Fixed Savings” feature where risk-averse users generate predictable returns without exposure to rate fluctuations. Perfect for users who want DeFi earnings but need certainty. Example: User deposits $10,000 USDC into 90-day Fixed Earn position at 12% APY (annualized). They earn $296 over 90 days (12% × 90/365 = 2.96%). Total: $10,296 at maturity (minus gas fees). No surprises. Treasury Management: Let businesses or DAOs generate fixed rates on idle stablecoins. CFOs can plan cash flow knowing exactly what their reserves will earn over the next quarter. Example: DAO with $500,000 USDC treasury deposits into 180-day Fixed Earn at 10% APY. Guaranteed $50,000 earnings over 6 months for operational planning.API Reference
The Fixed Earn product uses three main endpoints:List Pendle Markets
Discover active Pendle PT markets with fixed APYs and expiry dates.
Manage Earn Position
Deposit into or withdraw from Pendle PT positions (use venue type
PENDLE_PT).List Earn Positions
Get all user positions including Pendle PT holdings with PnL and expiry.