Skip to main content
The ixStripFromBase method on the Vault class creates a transaction instruction that wraps a base asset into SY, strips it into PT and YT, and deposits the YT into the user’s yield position — all in a single atomic operation.
A YieldTokenPosition must be initialized via ixInitializeYieldPosition before calling this method. The instruction auto-deposits YT into the yield position, so the account must already exist onchain.

Usage

This is an async method because it needs to construct the SY minting accounts from the vault’s flavor configuration.

Required Parameters

Optional Parameters

Returns

Returns a Promise<TransactionInstruction> that wraps the base asset into SY, strips it into PT and YT, and deposits the YT into the user’s yield position.