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 Vault class creates a transaction instruction that collects accrued interest (paid in SY) from a yield position.
Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
owner | PublicKey | The owner’s wallet public key |
amount | Amount | amount("All") or amount("Some", [value]) |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
syDst | PublicKey | Destination SY token account. Defaults to owner’s ATA |
Returns
Returns aTransactionInstruction that transfers accrued SY interest to the owner.
You must stage yield before collecting. Staging computes the earned interest from the exchange rate delta.