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 YtPosition class creates a transaction instruction that collects a specific emission reward from the yield position. Emissions are auxiliary reward tokens (e.g., governance tokens) distributed to YT depositors.
Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
owner | PublicKey | The position owner’s wallet public key |
emissionIndex | number | Index of the emission to collect (0-based) |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
emissionDst | PublicKey | Destination emission token account. Defaults to owner’s ATA |
amount | bigint | Specific amount to collect. Defaults to all available |
Returns
Returns aTransactionInstruction that transfers accrued emission rewards to the owner.