prices: non-USD fiat display works now; update endpoint comment

Server-side forex (ECB daily reference rates) shipped in
hash-wallet-prices; the wallet needed no code change. Comment updated so
the file stops claiming USD-only.
This commit is contained in:
jwinterm
2026-08-16 00:09:23 -04:00
parent 0b548ed8ca
commit ca771f51d5
+5 -5
View File
@@ -4,12 +4,12 @@ import 'package:hash_wallet/entities/fiat_currency.dart';
import 'dart:convert';
// Hash Bags price endpoint. Backed by the Cloudflare Worker in
// github.com/Such-Software/hash-wallet-prices — Kraken for majors, NonKYC for
// WOW, KV-cached every 60s.
// github.com/Such-Software/hash-wallet-prices: Kraken for majors, Nonlogs +
// volume-weighted CexSwap for WOW, KV-cached every 60s.
//
// USD-only. The wallet still lets the user pick other fiats from the UI, but
// non-USD requests will return price=0 until forex conversion is added on the
// server side.
// Non-USD fiats are converted server-side through ECB daily reference rates
// (since 2026-08-16). An unknown quote currency returns price=0 and the UI
// shows the existing "price unavailable" fallback.
//
// TODO: add a .onion mirror once we deploy a Tor hidden service and update
// _fiatApiOnionAuthority — Tor users currently fall back to clearnet.