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.
ixDepositYt method on the YtPosition class creates a transaction instruction that deposits YT tokens into the yield position. Once deposited, the position begins accruing interest and emissions.
Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
amount | bigint | Amount of YT tokens to deposit |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
ytSrc | PublicKey | Source YT token account. Defaults to owner’s ATA |
Returns
Returns aTransactionInstruction that transfers YT from the user’s token account into the yield position escrow.