Instruction to execute a creation, redemption, or swap.
Creation, redemption, or swap.
Token accounts to pull funds from or send funds to.
Instruction to get the expected basket for a PoolAction.
For creations, the basket is the quantity of each asset that need to be sent to the pool to process the creation. For redemptions and swaps, the basket is the quantity of each asset that will be transferred from the pool to the user after the redemption or swap.
Negative quantities will cause tokens to be transferred in the opposite direction.
Creation, redemption, or swap.
Account to which the basket will be written. Must be owned by the retbuf program.
Instruction to initialize a pool.
Program ID of the pool program.
Newly-created account to hold the pool state. Must be owned by the pool program.
spl-token mint address for the pool token.
User-friendly name for the pool.
spl-token account for each of the assets in the pool.
Mint authority for poolTokenMint
and owner of
poolTokenMint
.
Nonce used to generate vaultSigner
.
Pool token spl-token account owned by the LQD fee owner.
Pool token spl-token account owned by the pool initializer.
Fee rate for creations/redemptions times 10^6.
Any custom pool-specific accounts needed to initialize the pool.
Any custom pool-specific data needed to initialize the pool
Generated using TypeDoc
Low-level API for constructing and encoding pool instructions.
For a higher-level API that handles initializing accounts and approving token transfers, use PoolTransactions.