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.
createCollectInterestInstruction
Builds a raw instruction to collect accrued interest (paid in SY) from a yield position.Usage
Accounts
| Name | Type | Signer | Writable | Description |
|---|---|---|---|---|
owner | PublicKey | Yes | Yes | The yield position owner |
yieldPosition | PublicKey | No | Yes | User’s yield position PDA |
vault | PublicKey | No | Yes | Vault account |
tokenSyDst | PublicKey | No | Yes | Destination SY token account |
escrowSy | PublicKey | No | Yes | Vault SY escrow account |
authority | PublicKey | No | Yes | Vault authority PDA |
tokenProgram | PublicKey | No | No | SPL Token program |
syProgram | PublicKey | No | No | SY program |
treasurySyTokenAccount | PublicKey | No | Yes | Treasury SY token account (fees) |
addressLookupTable | PublicKey | No | No | Vault address lookup table |
eventAuthority | PublicKey | No | No | Event authority PDA |
program | PublicKey | No | No | Exponent Core program |
Args
| Name | Type | Description |
|---|---|---|
amount | Amount | Amount to collect: amount("All") or amount("Some", [value]) |
Amount Helper
Returns
TransactionInstruction — a transaction instruction ready to be added to a transaction.