UNPKG

@getclave/lifi-sdk

Version:

LI.FI Any-to-Any Cross-Chain-Swap SDK

11 lines 506 B
import type { LiFiStep } from '@lifi/types'; /** * Used to check if changed exchange rate is in the range of slippage threshold. * We use a slippage value as a threshold to trigger the rate change hook. * This can result in almost doubled slippage for the user and need to be revisited. * @param oldStep - old step * @param newStep - new step * @returns Boolean */ export declare function checkStepSlippageThreshold(oldStep: LiFiStep, newStep: LiFiStep): boolean; //# sourceMappingURL=utils.d.ts.map