V4.26.0 rc (#2198)

* v4.26.0 Release Candidate

* Fix Wownero Creation issue

* Add KES fiat currency

* Adjust backup to default node selection if null
Gracefully handle Decred failure
Minor fixes
This commit is contained in:
Omar Hatem
2025-04-15 02:50:07 +02:00
committed by GitHub
parent f574fa5e9b
commit ca564bc2e6
8 changed files with 76 additions and 49 deletions
@@ -107,20 +107,24 @@ abstract class AnonInvoicePageViewModelBase with Store {
return;
}
}
final result = await anonPayApi.createInvoice(AnonPayRequest(
cryptoCurrency: cryptoCurrency,
address: address,
amount: amount.isEmpty ? null : amount,
description: description,
email: receipientEmail,
name: receipientName,
fiatEquivalent:
selectedCurrency is FiatCurrency ? (selectedCurrency as FiatCurrency).raw : null,
));
try {
final result = await anonPayApi.createInvoice(AnonPayRequest(
cryptoCurrency: cryptoCurrency,
address: address,
amount: amount.isEmpty ? null : amount,
description: description,
email: receipientEmail,
name: receipientName,
fiatEquivalent:
selectedCurrency is FiatCurrency ? (selectedCurrency as FiatCurrency).raw : null,
));
_anonpayInvoiceInfoSource.add(result);
_anonpayInvoiceInfoSource.add(result);
state = ExecutedSuccessfullyState(payload: result);
state = ExecutedSuccessfullyState(payload: result);
} catch (e) {
state = FailureState(e.toString());
}
}
@action
@@ -156,12 +160,16 @@ abstract class AnonInvoicePageViewModelBase with Store {
}
Future<void> _fetchLimits() async {
final limit = await anonPayApi.fetchLimits(
cryptoCurrency: cryptoCurrency,
fiatCurrency: selectedCurrency is FiatCurrency ? selectedCurrency as FiatCurrency : null,
);
minimum = limit.min;
maximum = limit.max != null ? limit.max! / 4 : null;
try {
final limit = await anonPayApi.fetchLimits(
cryptoCurrency: cryptoCurrency,
fiatCurrency: selectedCurrency is FiatCurrency ? selectedCurrency as FiatCurrency : null,
);
minimum = limit.min;
maximum = limit.max != null ? limit.max! / 4 : null;
} catch (e) {
state = FailureState(e.toString());
}
}
@computed
@@ -137,7 +137,9 @@ abstract class LedgerViewModelBase with Store {
allowChangeWallet: true,
isReconnect: true,
onConnectDevice: (context, ledgerVM) async {
Navigator.of(context).pop();
if (context.mounted) {
Navigator.of(context).pop();
}
},
),
);
@@ -216,7 +216,6 @@ abstract class WalletListViewModelBase with Store {
await sortGroupByType();
break;
case FilterListOrderType.Custom:
default:
await reorderAccordingToWalletList();
break;
}