Skip to main content
This guide walks through a complete lifecycle with the Exponent SDK: strip a base asset into PT and YT, deposit YT to earn yield, collect accrued interest, and merge everything back. By the end, developers will have a working end-to-end flow they can adapt for production.

Prerequisites

Install the SDK:

Basic Setup


Complete Lifecycle: Strip, Collect Yield, and Merge

This example demonstrates the core flow: strip a base asset into PT + YT, deposit YT to earn yield, collect accrued interest, and merge PT + YT back into the base asset.
Key Takeaways:
  • ixStripFromBase wraps base asset into SY, splits into PT + YT, and auto-deposits YT into the yield position — all in one transaction
  • The YieldTokenPosition must be initialized before calling ixStripFromBase
  • ixStageYield + ixCollectInterest snapshots the exchange rate and transfers accrued SY
  • Withdraw YT from the yield position before merging — ixMergeToBase burns YT from your wallet
  • Always call reload() on SDK instances before querying state

Next Steps

Strip & Merge

Detailed walkthrough of stripping, yield collection, and merging

Trading

Trade PT and YT on the CLMM and Orderbook

Testing & Debugging

Inspect vault and market state and simulate transactions

Exponent Core SDK

Detailed SDK reference for yield stripping operations