TheDocumentation 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.
ixCollectEmission method on the Vault class creates a transaction instruction that collects a specific emission reward from a yield position. Emissions are auxiliary reward tokens (e.g., governance tokens) distributed to YT depositors.
Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
owner | PublicKey | The owner’s wallet public key |
emissionIndex | number | Index of the emission to collect (0-based) |
amount | Amount | amount("All") or amount("Some", [value]) |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
emissionDst | PublicKey | Destination emission token account. Defaults to owner’s ATA |
Returns
Returns aTransactionInstruction that transfers accrued emission rewards to the owner.