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.
createWrapperCollectInterestInstruction
Builds a raw instruction that collects accrued interest from a yield position and unwraps the SY to the base asset in a single atomic operation.Usage
Accounts
| Name | Type | Signer | Writable | Description |
|---|---|---|---|---|
claimer | PublicKey | Yes | Yes | The user collecting interest |
authority | PublicKey | No | Yes | Vault authority PDA |
vault | PublicKey | No | Yes | Vault account |
addressLookupTable | PublicKey | No | No | Vault address lookup table |
escrowSy | PublicKey | No | Yes | Vault SY escrow account |
syProgram | PublicKey | No | No | SY program |
tokenProgram | PublicKey | No | No | SPL Token program |
yieldPosition | PublicKey | No | Yes | User’s yield position PDA |
tokenSyDst | PublicKey | No | Yes | Destination SY token account |
treasurySyTokenAccount | PublicKey | No | Yes | Treasury SY token account (fees) |
eventAuthority | PublicKey | No | No | Event authority PDA |
program | PublicKey | No | No | Exponent Core program |
Args
| Name | Type | Description |
|---|---|---|
redeemSyAccountsLength | number | Number of remaining accounts for SY redemption CPI |
Returns
TransactionInstruction — a transaction instruction ready to be added to a transaction.