@easymoney/currencies
Version:
Best way to do money in js
23 lines (20 loc) • 499 B
text/typescript
import { CurrencyMap, CurrencyUnitCrypto } from "../types";
import { convertCurrencyMapToArray } from "../convertCurrencyMapToArray";
export const cryptoCurrenciesMap: CurrencyMap<CurrencyUnitCrypto> = {
BTC: {
code: "BTC",
minorUnit: 8,
symbol: "BTC"
},
LTC: {
code: "LTC",
minorUnit: 8,
symbol: "LTC"
},
ETH: {
code: "ETH",
minorUnit: 18,
symbol: "ETH"
}
} as const;
export const cryptoCurrencies = convertCurrencyMapToArray(cryptoCurrenciesMap);