Type alias GetPricesConfig

GetPricesConfig: {
    programId: PublicKey;
    quoteTokens: PublicKey[];
    tickSpacings: number[];
    whirlpoolsConfig: PublicKey;
}

A config object for the PriceModule functions.

Type declaration

  • programId: PublicKey
  • quoteTokens: PublicKey[]
  • tickSpacings: number[]
  • whirlpoolsConfig: PublicKey

Param: quoteTokens

The group of quote tokens that you want to search Whirlpools for. The first token must be the token that is being priced against the other tokens. The subsequent tokens are alternative tokens that can be used to price the first token.

Param: tickSpacings

The group of tick spacings that you want to search Whirlpools for.

Param: programId

The public key of the Whirlpool Program account that you want to search Whirlpools for.

Param: whirlpoolsConfig

The public key of the WhirlpoolsConfig account that you want to search Whirlpools for.

Generated using TypeDoc