UNPKG

@ledgerhq/live-common

Version:
8 lines 484 B
import { Account } from "./enum/Account"; /** * Fetches the current USD price for a currency from the Ledger countervalues API * and converts a target USD value into the equivalent crypto amount. */ export declare function getAmountFromUSD(currencyId: string, targetUSD: number): Promise<number | null>; export declare function getMinimumSwapAmount(accountFrom: Account, accountTo: Account, providersWhitelist?: string[]): Promise<number | null>; //# sourceMappingURL=swap.d.ts.map