Connection to use to fetch data.
Pool to interact with.
Creation, redemption, or swap.
Arbitrary Solana address. Must hold nonzero SOL and not be owned by a program.
Load and decode pool state.
Throws an error if the pool is not found or invalid.
Solana connection to use to fetch the pool state.
Pool state account address.
Generated using TypeDoc
Fetch the basket for a creation or redemption.
For creations, the basket is the quantity of each asset that needs to be paid to the pool to create the given quantity of pool tokens.
For redemptions, the basket is the quantity of each asset that is received from the pool in return for redeeming the given quantity of pool tokens.