chore: - disable SideShift - minor fixes

chore: - disable SideShift - minor fixes

OmarHatem committed Oct 31, 2025 at 01:55 UTC 3f9840233a5fac6e4c52e141c425062e8aac6530
3 files changed +9 -5
lib/core/address_validator.dart
+2 -2
@@ -347,10 +347,10 @@ class AddressValidator extends TextValidator {
347 pattern = '([1-9A-HJ-NP-Za-km-z]{90,200})|(@[\w\d.-]+)';
348 default:
349 if (type.tag == CryptoCurrency.eth.title) {
350 - pattern = '0x[0-9a-zA-Z]{42}';
350 + pattern = '0x[0-9a-zA-Z]+';
351 }
352 if (type.tag == CryptoCurrency.maticpoly.tag) {
353 - pattern = '0x[0-9a-zA-Z]{42}';
353 + pattern = '0x[0-9a-zA-Z]+';
354 }
355 if (type.tag == CryptoCurrency.sol.title) {
356 pattern = '[1-9A-HJ-NP-Za-km-z]{43,44}';
lib/src/screens/restore/restore_options_page.dart
+6 -2
@@ -137,10 +137,13 @@ class _RestoreOptionsBodyState extends State<_RestoreOptionsBody> {
137 }
138
139 void _showQRScanError(BuildContext context, String error) {
140 - setState(() => isRestoring = false);
140 + if (mounted) {
141 + setState(() => isRestoring = false);
142 + }
143
144 WidgetsBinding.instance.addPostFrameCallback((_) {
143 - showPopUp<void>(
145 + if (mounted) {
146 + showPopUp<void>(
147 context: context,
148 builder: (BuildContext context) {
149 return AlertWithOneAction(
@@ -149,6 +152,7 @@ class _RestoreOptionsBodyState extends State<_RestoreOptionsBody> {
152 buttonText: S.of(context).ok,
153 buttonAction: () => Navigator.of(context).pop());
154 });
155 + }
156 });
157 }
158
lib/view_model/exchange/exchange_view_model.dart
+1 -1
@@ -212,7 +212,7 @@ abstract class ExchangeViewModelBase extends WalletChangeListenerViewModel with
212
213 List<ExchangeProvider> get _allProviders => [
214 ChangeNowExchangeProvider(settingsStore: _settingsStore),
215 - SideShiftExchangeProvider(),
215 + // SideShiftExchangeProvider(),
216 ChainflipExchangeProvider(tradesStore: trades),
217 if (FeatureFlag.isExolixEnabled) ExolixExchangeProvider(),
218 SwapTradeExchangeProvider(),