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.
ixCollectInterest method on the YtPosition class creates a transaction instruction that collects staged interest (paid in SY) from the yield position.
Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
signer | PublicKey | The position owner (signer) |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
syDst | PublicKey | Destination SY token account. Defaults to signer’s ATA |
amount | bigint | Specific amount to collect. Defaults to all available |
Returns
Returns aTransactionInstruction that transfers staged SY interest to the owner.
You must stage yield before collecting. Staging and collecting can be combined in the same transaction.