UNPKG

@drift-labs/sdk

Version:
12 lines (11 loc) 439 B
import { SolanaPriorityFeeResponse } from './solanaPriorityFeeMethod'; import { PriorityFeeStrategy } from './types'; declare class EwmaStrategy implements PriorityFeeStrategy { private halfLife; /** * @param halfLife The half life of the EWMA in slots. Default is 25 slots, approx 10 seconds. */ constructor(halfLife?: number); calculate(samples: SolanaPriorityFeeResponse[]): number; } export { EwmaStrategy };