ixInitializeYieldPosition method on the Vault class creates a transaction instruction that initializes a YieldTokenPosition PDA for a user. This must be called once per vault before the user can deposit YT.
Usage
Required Parameters
| Parameter | Type | Description |
|---|---|---|
owner | PublicKey | The owner’s wallet public key |
Returns
Returns aTransactionInstruction that creates the yield position PDA. The account is derived from the owner’s public key and the vault address.