Interface UseSpotPriceConfig<TToken>

Configuration for the useSpotPrice hook. spotPriceRequest - An object containing the tokens and chain ID for the spot price request. enabled - Flag to enable the hook.

interface UseSpotPriceConfig {
    enabled?: boolean;
    spotPriceRequest?: {
        chainId: number;
        tokens: NonNullable<TToken>;
    };
}

Type Parameters

Properties

enabled?: boolean
spotPriceRequest?: {
    chainId: number;
    tokens: NonNullable<TToken>;
}

Type declaration

Generated using TypeDoc