@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
14 lines • 712 B
TypeScript
import { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets";
import { AssetsDataWithPagination } from "../state-manager/types";
/**
* Selects the best currency for a given meta-currency ID based on priority:
* 1. Main currency (matching metaCurrencyId)
* 2. CryptoCurrency type
* 3. First available network
*/
export declare function selectCurrencyForMetaId(metaCurrencyId: string, data: AssetsDataWithPagination): CryptoOrTokenCurrency | undefined;
/**
* Selects the best currency from the first meta-currency in the asset data result.
*/
export declare function selectCurrency(result: AssetsDataWithPagination): CryptoOrTokenCurrency | undefined;
//# sourceMappingURL=currencySelection.d.ts.map