Documentation 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.
createDepositYtInstruction
Builds a raw instruction to deposit YT (Yield Tokens) into a yield position. Deposited YT accrues interest and emission rewards over time.Usage
Accounts
| Name | Type | Signer | Writable | Description |
|---|---|---|---|---|
depositor | PublicKey | Yes | Yes | The user depositing YT |
vault | PublicKey | No | Yes | Vault account |
userYieldPosition | PublicKey | No | Yes | User’s yield position PDA |
ytSrc | PublicKey | No | Yes | Source YT token account |
escrowYt | PublicKey | No | Yes | Vault YT escrow account |
tokenProgram | PublicKey | No | No | SPL Token program |
syProgram | PublicKey | No | No | SY program |
addressLookupTable | PublicKey | No | No | Vault address lookup table |
yieldPosition | PublicKey | No | Yes | Vault robot yield position |
systemProgram | PublicKey | No | No | System program |
eventAuthority | PublicKey | No | No | Event authority PDA |
program | PublicKey | No | No | Exponent Core program |
Args
| Name | Type | Description |
|---|---|---|
amount | bigint | Amount of YT to deposit (in base units) |
Returns
TransactionInstruction — a transaction instruction ready to be added to a transaction.