Skip to main content
The 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

Returns

Returns a TransactionInstruction that creates the yield position PDA. The account is derived from the owner’s public key and the vault address.
This is a one-time operation per vault. After initialization, use YtPosition.loadByOwner to load the position and start depositing YT.