@drift-labs/sdk
Version:
SDK for Drift Protocol
12 lines • 481 B
TypeScript
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 };
//# sourceMappingURL=ewmaStrategy.d.ts.map