Type alias SetProtocolFeeRateParams

SetProtocolFeeRateParams: {
    feeAuthority: PublicKey;
    protocolFeeRate: number;
    whirlpool: PublicKey;
    whirlpoolsConfig: PublicKey;
}

Parameters to set fee rate for a Whirlpool.

Type declaration

  • feeAuthority: PublicKey
  • protocolFeeRate: number
  • whirlpool: PublicKey
  • whirlpoolsConfig: PublicKey

Param: whirlpool

PublicKey for the whirlpool to update. This whirlpool has to be part of the provided WhirlpoolsConfig space.

Param: whirlpoolsConfig

The public key for the WhirlpoolsConfig this pool is initialized in

Param: feeAuthority

Authority authorized in the WhirlpoolsConfig to set default fee rates.

Param: protocolFeeRate

The new default protocol fee rate for this pool. Stored as a basis point of the total fees collected by feeRate.

Generated using TypeDoc