Type alias CollectProtocolFeesV2Params

CollectProtocolFeesV2Params: {
    collectProtocolFeesAuthority: PublicKey;
    tokenMintA: PublicKey;
    tokenMintB: PublicKey;
    tokenOwnerAccountA: PublicKey;
    tokenOwnerAccountB: PublicKey;
    tokenProgramA: PublicKey;
    tokenProgramB: PublicKey;
    tokenTransferHookAccountsA?: AccountMeta[];
    tokenTransferHookAccountsB?: AccountMeta[];
    tokenVaultA: PublicKey;
    tokenVaultB: PublicKey;
    whirlpool: PublicKey;
    whirlpoolsConfig: PublicKey;
}

Parameters to collect protocol fees for a Whirlpool

Type declaration

  • collectProtocolFeesAuthority: PublicKey
  • tokenMintA: PublicKey
  • tokenMintB: PublicKey
  • tokenOwnerAccountA: PublicKey
  • tokenOwnerAccountB: PublicKey
  • tokenProgramA: PublicKey
  • tokenProgramB: PublicKey
  • Optional tokenTransferHookAccountsA?: AccountMeta[]
  • Optional tokenTransferHookAccountsB?: AccountMeta[]
  • tokenVaultA: PublicKey
  • tokenVaultB: PublicKey
  • whirlpool: PublicKey
  • whirlpoolsConfig: PublicKey

Param: whirlpoolsConfig

The public key for the WhirlpoolsConfig this pool is initialized in

Param: whirlpool

PublicKey for the whirlpool that the position will be opened for.

Param: collectProtocolFeesAuthority

assigned authority in the WhirlpoolsConfig that can collect protocol fees

Param: tokenMintA

PublicKey for the token A mint.

Param: tokenMintB

PublicKey for the token B mint.

Param: tokenVaultA

PublicKey for the tokenA vault for this whirlpool.

Param: tokenVaultB

PublicKey for the tokenB vault for this whirlpool.

Param: tokenOwnerAccountA

PublicKey for the associated token account for tokenA in the collection wallet

Param: tokenOwnerAccountB

PublicKey for the associated token account for tokenA in the collection wallet

Param: tokenTransferHookAccountsA

Optional array of token transfer hook accounts for token A.

Param: tokenTransferHookAccountsB

Optional array of token transfer hook accounts for token B.

Param: tokenProgramA

PublicKey for the token program for token A.

Param: tokenProgramB

PublicKey for the token program for token B.

Generated using TypeDoc