Skip to main content

Documentation Index

Fetch the complete documentation index at: https://v2-docs.exponent.finance/llms.txt

Use this file to discover all available pages before exploring further.

Exponent Core Vault Instructions

These are the instruction builders provided by the Vault class. They handle account resolution, address lookup tables, and CPI routing automatically.
For low-level control, see the raw Codama-generated instructions which require manual account resolution.

Installation

npm install @exponent-labs/exponent-sdk @solana/web3.js
All instructions are methods on the Vault class:
import { Vault, LOCAL_ENV } from "@exponent-labs/exponent-sdk";

const vault = await Vault.load(LOCAL_ENV, connection, vaultAddress);

Strip & Merge

Strip from Base

Convert a base asset into PT and YT in a single step by wrapping to SY and stripping through the vault.

Merge to Base

Merge PT and YT back into the base asset, handling the unwrap flow from SY automatically.

Strip (SY)

Strip SY directly into PT and YT when the caller already holds standardized yield tokens.

Merge (to SY)

Merge PT and YT back into SY without converting back to the base asset.

Yield Position Management

Initialize Yield Position

Create the yield position account used to escrow YT and track exchange-rate-based yield accrual.

Collect Interest

Claim accrued interest from a yield position after yield has been staged.

Collect Emission

Claim any accrued emissions or reward tokens associated with the yield position.
For depositing/withdrawing YT and staging yield, see the YtPosition Instructions.