UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

15 lines (14 loc) 741 B
/** * Fetches Swapped exchange options by calling /fops with a CRYPTO_TO_CRYPTO * rail config. The rail config is what causes the backend to return exchange * FOPs (e.g. Bybit); however, this hook does not guard against the backend * returning non-Swapped or non-exchange FOPs in the future — callers should * be aware that the response may evolve as the BE adds rail types. * * Gated by the `enable-swapped-exchanges` Statsig feature gate — when off, * the query is disabled and the response is empty. */ export declare const useSwappedExchanges: () => import("@tanstack/react-query").UseQueryResult<{ genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[]; savedFormsOfPayments: never[]; }, Error>;