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.
createCollectEmissionInstruction
Builds a raw instruction to collect emission rewards from a yield position. Each vault can have multiple emission tokens, identified by their index.Usage
Accounts
| Name | Type | Signer | Writable | Description |
|---|---|---|---|---|
owner | PublicKey | Yes | Yes | The yield position owner |
vault | PublicKey | No | Yes | Vault account |
position | PublicKey | No | Yes | User’s yield position PDA |
syProgram | PublicKey | No | No | SY program |
authority | PublicKey | No | No | Vault authority PDA |
emissionEscrow | PublicKey | No | Yes | Emission token escrow account |
emissionDst | PublicKey | No | Yes | Destination emission token account |
addressLookupTable | PublicKey | No | No | Vault address lookup table |
treasuryEmissionTokenAccount | PublicKey | No | Yes | Treasury emission token account (fees) |
tokenProgram | PublicKey | No | No | SPL Token program |
eventAuthority | PublicKey | No | No | Event authority PDA |
program | PublicKey | No | No | Exponent Core program |
Args
| Name | Type | Description |
|---|---|---|
index | number | Emission index (0-based, corresponding to vault’s emission list) |
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.