UNPKG

@orca-so/whirlpools-sdk

Version:

Typescript SDK to interact with Orca's Whirlpool program.

18 lines (17 loc) 771 B
import type { Program } from "@coral-xyz/anchor"; import type { Instruction } from "@orca-so/common-sdk"; import type { PublicKey } from "@solana/web3.js"; import type { Whirlpool } from "../../artifacts/whirlpool"; export type SetPresetAdaptiveFeeConstantsParams = { whirlpoolsConfig: PublicKey; feeAuthority: PublicKey; adaptiveFeeTier: PublicKey; presetFilterPeriod: number; presetDecayPeriod: number; presetReductionFactor: number; presetAdaptiveFeeControlFactor: number; presetMaxVolatilityAccumulator: number; presetTickGroupSize: number; presetMajorSwapThresholdTicks: number; }; export declare function setPresetAdaptiveFeeConstantsIx(program: Program<Whirlpool>, params: SetPresetAdaptiveFeeConstantsParams): Instruction;