@orca-so/whirlpools-sdk
Version:
Typescript SDK to interact with Orca's Whirlpool program.
19 lines (18 loc) • 735 B
TypeScript
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 SetAdaptiveFeeConstantsParams = {
whirlpool: PublicKey;
whirlpoolsConfig: PublicKey;
oracle: PublicKey;
feeAuthority: PublicKey;
filterPeriod?: number;
decayPeriod?: number;
reductionFactor?: number;
adaptiveFeeControlFactor?: number;
maxVolatilityAccumulator?: number;
tickGroupSize?: number;
majorSwapThresholdTicks?: number;
};
export declare function setAdaptiveFeeConstantsIx(program: Program<Whirlpool>, params: SetAdaptiveFeeConstantsParams): Instruction;