Skip to main content
Exponent offers two markets for trading PT and YT: the CLMM (Concentrated Liquidity Market Maker) for instant swaps, and the Orderbook for limit orders at specific APY levels. This page covers both, with production-ready SDK examples.

CLMM Trading

The CLMM enables instant swaps between PT and SY using concentrated liquidity pools.

Sell PT on the CLMM (go long yield)

Selling PT at a discount gives leveraged yield exposure through YT at low cost. If PT trades at 0.95, the net cost for 1,000 YT is ~50 SY.

CLMM Liquidity Provision

Providing concentrated liquidity to the CLMM earns trading fees. This example shows how to deposit liquidity, monitor a position, collect fees, and withdraw.
Key Takeaways:
  • Concentrated liquidity requires choosing a tick range
  • Tighter ranges mean higher capital efficiency but more rebalancing
  • Fees accrue automatically when trades occur within the range
  • Use ixAddLiquidity with 0 amounts to collect fees without depositing
  • LP positions are NFT-like accounts (unique per range)

Orderbook Trading

The Orderbook allows limit orders at specific APY levels, giving precise control over pricing. YT sitting in open SellYT offers continues to earn yield.

Post a YT sell offer (lock in a fixed rate)

Selling YT leaves the trader with only PT — a fixed-rate position that converges to its SY backing at maturity.

Orderbook Limit Order with Interest Collection

This example posts a YT limit order and collects yield that accrues while the order sits in the book.
Key Takeaways:
  • YT in orderbook SellYT offers continues to earn yield
  • Use ixWrapperCollectInterest to claim yield from the orderbook
  • getUserBalances shows escrow balances separate from wallet balances
  • getUserOpenOrders returns all active orders for a user
  • Always withdraw escrow balances or remove orders to recover funds

Virtual Offers: Trade PT Directly on the Orderbook

Virtual offers enable PT trading on the Orderbook without handling YT directly. The system automatically strips or merges to settle virtual trades.
Key Takeaways:
  • Virtual SellYT = Sell PT for SY (deposit SY, receive PT when filled)
  • Virtual BuyYT = Buy SY with PT (deposit PT, receive SY when filled)
  • Virtual offers enable PT traders to avoid YT entirely
  • The system automatically strips/merges to settle virtual trades
  • Virtual and non-virtual offers share the same orderbook liquidity

Next Steps

Strip & Merge

Detailed walkthrough of stripping, yield collection, and merging

Testing & Debugging

Inspect vault and market state and simulate transactions

CLMM SDK

Complete CLMM integration guide

Orderbook SDK

Orderbook limit order documentation