TheDocumentation 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.
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.
Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
owner | PublicKey | The owner’s wallet public key |
amountBase | bigint | Amount of base asset to strip |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
baseSrc | PublicKey | Source base token account. Defaults to owner’s PT mint ATA |
sySrc | PublicKey | Intermediate SY token account. Defaults to owner’s ATA |
ptDst | PublicKey | Destination PT token account. Defaults to owner’s ATA |
ytDst | PublicKey | Destination YT token account. Defaults to owner’s ATA |
Returns
Returns aPromise<TransactionInstruction> that wraps the base asset into SY, strips it into PT and YT, and deposits the YT into the user’s yield position.