UNPKG

@frak-labs/core-sdk

Version:

Core SDK of the Frak wallet, low level library to interact directly with the frak ecosystem.

15 lines (13 loc) 404 B
import { locales } from "../../constants/locales"; import type { Currency } from "../../types"; /** * Get the supported currency for a given currency * @param currency - The currency to use * @returns The supported currency */ export function getSupportedCurrency(currency?: Currency): Currency { if (!currency) { return "eur"; } return currency in locales ? currency : "eur"; }