wgm-swap-components
Version:
A React component library for token swap interfaces
19 lines (18 loc) • 528 B
TypeScript
import { QuoteResponse } from '../services/quoteService';
import { Token } from '../SwapForm';
export declare function useFetchQuote({ tokenIn, tokenOut, amountIn, chainId, tradeType, protocols, enabled, }: {
tokenIn: Token | null;
tokenOut: Token | null;
amountIn: string;
chainId?: number;
tradeType?: string;
protocols?: string;
enabled?: boolean;
}): {
data: {
quote: QuoteResponse;
} | null;
isLoading: boolean;
error: string | null;
refetch: () => Promise<void>;
};