ixStrip method on the Vault class creates a transaction instruction that strips SY tokens into equal amounts of PT and YT.
This method takes SY tokens directly. If you want to strip from a base asset (e.g., USDC), use
ixStripFromBase instead.Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
syIn | bigint | Amount of SY tokens to strip |
depositor | PublicKey | The depositor’s wallet public key |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
sySrc | PublicKey | Source SY token account. Defaults to depositor’s ATA |
ptDst | PublicKey | Destination PT token account. Defaults to depositor’s ATA |
ytDst | PublicKey | Destination YT token account. Defaults to depositor’s ATA |
Returns
Returns aTransactionInstruction that strips SY into PT and YT. The number of PT and YT minted equals syIn × exchangeRate.