Documentation
    Preparing search index...

    Type Alias CollectProtocolFeesV2Params

    Parameters to collect protocol fees for a Whirlpool

    The public key for the WhirlpoolsConfig this pool is initialized in

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

    assigned authority in the WhirlpoolsConfig that can collect protocol fees

    PublicKey for the token A mint.

    PublicKey for the token B mint.

    PublicKey for the tokenA vault for this whirlpool.

    PublicKey for the tokenB vault for this whirlpool.

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

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

    Optional array of token transfer hook accounts for token A.

    Optional array of token transfer hook accounts for token B.

    PublicKey for the token program for token A.

    PublicKey for the token program for token B.

    type 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;
    }
    Index

    Properties

    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