Type alias InitPoolV2Params

InitPoolV2Params: {
    feeTierKey: PublicKey;
    funder: PublicKey;
    initSqrtPrice: BN;
    tickSpacing: number;
    tokenBadgeA: PublicKey;
    tokenBadgeB: PublicKey;
    tokenMintA: PublicKey;
    tokenMintB: PublicKey;
    tokenProgramA: PublicKey;
    tokenProgramB: PublicKey;
    tokenVaultAKeypair: Keypair;
    tokenVaultBKeypair: Keypair;
    whirlpoolPda: PDA;
    whirlpoolsConfig: PublicKey;
}

Parameters to initialize a Whirlpool account.

Type declaration

  • feeTierKey: PublicKey
  • funder: PublicKey
  • initSqrtPrice: BN
  • tickSpacing: number
  • tokenBadgeA: PublicKey
  • tokenBadgeB: PublicKey
  • tokenMintA: PublicKey
  • tokenMintB: PublicKey
  • tokenProgramA: PublicKey
  • tokenProgramB: PublicKey
  • tokenVaultAKeypair: Keypair
  • tokenVaultBKeypair: Keypair
  • whirlpoolPda: PDA
  • whirlpoolsConfig: PublicKey

Param: initSqrtPrice

The desired initial sqrt-price for this pool

Param: whirlpoolsConfig

The public key for the WhirlpoolsConfig this pool is initialized in

Param: whirlpoolPda

PDA for the whirlpool account that would be initialized

Param: tokenMintA

Mint public key for token A

Param: tokenMintB

Mint public key for token B

Param: tokenBadgeA

TokenBadge public key for token A

Param: tokenBadgeB

TokenBadge public key for token B

Param: tokenProgramA

Token program public key for token A

Param: tokenProgramB

Token program public key for token B

Param: tokenVaultAKeypair

Keypair of the token A vault for this pool

Param: tokenVaultBKeypair

Keypair of the token B vault for this pool

Param: feeTierKey

PublicKey of the fee-tier account that this pool would use for the fee-rate

Param: tickSpacing

The desired tick spacing for this pool.

Param: funder

The account that would fund the creation of this account

Generated using TypeDoc