Files
wowcheckout/ui/lib/fiat-currencies.ts
jwinterm f8f9b4424c Fork xmrcheckout for Wownero (WOW)
Minimal changes from upstream xmrcheckout to support Wownero:
- Rate provider: Nonlogs WOW-BTC via Kraken BTC/USD
- Subaddress derivation: Wownero network byte overrides (53/63/54)
- Payment URI scheme: wownero:
- Dockerfile: Wownero binaries from Codeberg
- Display text: Monero→Wownero, XMR→WOW throughout UI
- Default daemon: 192.168.88.235:34568
- Added wownero-logo.svg

File and folder structure kept identical to upstream for easy sync.
2026-03-09 11:08:55 -04:00

55 lines
848 B
TypeScript

export const FIAT_CURRENCY_SUGGESTIONS = [
"USD",
"EUR",
"GBP",
"CAD",
"AUD",
"NZD",
"CHF",
"JPY",
"CNY",
"HKD",
"SGD",
"INR",
"BRL",
"MXN",
"SEK",
"NOK",
"DKK",
"ZAR",
"PLN",
"KRW",
];
const CURRENCY_FLAGS: Record<string, string> = {
USD: "🇺🇸",
EUR: "🇪🇺",
GBP: "🇬🇧",
CAD: "🇨🇦",
AUD: "🇦🇺",
NZD: "🇳🇿",
CHF: "🇨🇭",
JPY: "🇯🇵",
CNY: "🇨🇳",
HKD: "🇭🇰",
SGD: "🇸🇬",
INR: "🇮🇳",
BRL: "🇧🇷",
MXN: "🇲🇽",
SEK: "🇸🇪",
NOK: "🇳🇴",
DKK: "🇩🇰",
ZAR: "🇿🇦",
PLN: "🇵🇱",
KRW: "🇰🇷",
};
export const getCurrencyFlag = (
code: string | null | undefined
): string | null => {
if (!code) {
return null;
}
return CURRENCY_FLAGS[code.trim().toUpperCase()] ?? null;
};