UNPKG

@funkit/connect

Version:

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

15 lines (14 loc) 620 B
import { type MeldQuote } from '@funkit/api-base'; /** * Auto-pick the best quote for the user. * @param quotes - the quotes to pick from * @returns the best quote based on the criteria */ export declare function autoPickBestQuote(quotes: MeldQuote[]): MeldQuote | undefined; /** * Check if the quote is the best price quote. * @param sourceQuotes - the quotes to check * @param targetQuote - the quote to check * @returns true if the quote is the best price quote, false otherwise */ export declare function isBestPriceQuote(sourceQuotes: MeldQuote[] | undefined, targetQuote: MeldQuote | undefined): boolean;