CW-1017: Monero minor enhancements (#2347)

* feat: add max decimal handling for crypto amounts and test coverage

* fix: correct decimal point handling in `withMaxDecimals` and update related test

* fix: ensure amount formatting aligns with selected currency decimals in ReceivePage

* fix: ensure amount controller syncs with ViewModel in AddressPage and ReceivePage

* feat: add support for currency decimals and streamline amount handling logic

* fix: ensure crypto and fiat amounts sync correctly in Send ViewModel
This commit is contained in:
Konstantin Ullrich
2025-07-04 04:54:40 +03:00
committed by GitHub
parent ff999f9a17
commit 3647e3043a
12 changed files with 78 additions and 9 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ abstract class OutputBase with Store {
sendAll = false;
}
cryptoAmount = amount.replaceAll(',', '.');
cryptoAmount = amount;
_updateFiatAmount();
}
@@ -63,6 +63,9 @@ abstract class SendTemplateViewModelBase with Store {
@computed
String get fiatCurrency => _settingsStore.fiatCurrency.title;
@computed
int get fiatCurrencyDecimals => _settingsStore.fiatCurrency.decimals;
@computed
ObservableList<Template> get templates => _sendTemplateStore.templates;