What changed, and why it matters
This commit simply adds correct currency symbols (like £ for British pounds or ¥ for Japanese yen) to the wallet's display. It is a user-interface improvement with no security relevance.
No security action needed; this is a routine UI localization/display fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change introduces a currencySymbols map in lib/consts.dart and replaces a hardcoded EUR/USD ternary in lib/screens/wallet_home.dart with a lookup into that map, falling back to ‘$’. There is no change to cryptography, storage, networking, authentication, or transaction logic.
Changed components
lib/consts.dartlib/screens/wallet_home.dartInspect captured patch +10 / −1
diff --git a/lib/consts.dart b/lib/consts.dart
index 9638823..ff439a9 100644
--- a/lib/consts.dart
+++ b/lib/consts.dart
@@ -12,4 +12,13 @@ const supportedFiatCurrencies = [
'JPY',
];
const indirectPairCurrencies = ['CAD', 'AUD', 'GBP', 'CHF', 'JPY'];
+const currencySymbols = {
+ 'USD': '\$',
+ 'EUR': '€',
+ 'CAD': 'C\$',
+ 'AUD': 'A\$',
+ 'GBP': '£',
+ 'CHF': 'Fr',
+ 'JPY': '¥',
+};
const walletPasswordStorageKey = 'walletPassword';
diff --git a/lib/screens/wallet_home.dart b/lib/screens/wallet_home.dart
index 67d5d30..be03db5 100644
--- a/lib/screens/wallet_home.dart
+++ b/lib/screens/wallet_home.dart
@@ -72,7 +72,7 @@ class _WalletHomeScreenState extends State<WalletHomeScreen> {
: null;
final lockedBalance =
(wallet.totalBalance ?? 0) - (wallet.unlockedBalance ?? 0);
- final fiatSymbol = fiatRate.fiatCode == 'EUR' ? '€' : '\$';
+ final fiatSymbol = consts.currencySymbols[fiatRate.fiatCode] ?? '\$';
var lwsConnectionIconStatus = StatusIconStatus.fail;
var fiatApiIconStatus = StatusIconStatus.loading;
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.