@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
8 lines • 484 B
TypeScript
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