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.
createStripInstruction
Builds a raw instruction to strip SY tokens into equal amounts of PT (Principal Token) and YT (Yield Token).Usage
Accounts
| Name | Type | Signer | Writable | Description |
|---|---|---|---|---|
depositor | PublicKey | Yes | Yes | The user stripping SY |
authority | PublicKey | No | Yes | Vault authority PDA |
vault | PublicKey | No | Yes | Vault account |
sySrc | PublicKey | No | Yes | Source SY token account |
escrowSy | PublicKey | No | Yes | Vault SY escrow account |
ytDst | PublicKey | No | Yes | Destination YT token account |
ptDst | PublicKey | No | Yes | Destination PT token account |
mintYt | PublicKey | No | Yes | YT mint address |
mintPt | PublicKey | No | Yes | PT mint address |
tokenProgram | PublicKey | No | No | SPL Token program |
addressLookupTable | PublicKey | No | No | Vault address lookup table |
syProgram | PublicKey | No | No | SY program |
yieldPosition | PublicKey | No | Yes | Vault robot yield position |
eventAuthority | PublicKey | No | No | Event authority PDA |
program | PublicKey | No | No | Exponent Core program |
Args
| Name | Type | Description |
|---|---|---|
amount | bigint | Amount of SY to strip (in base units) |
Returns
TransactionInstruction — a transaction instruction ready to be added to a transaction.