- disable SideShift
- minor fixes
This commit is contained in:
OmarHatem
2025-10-31 01:55:09 +01:00
parent 00b99a9fa0
commit 3f9840233a
3 changed files with 9 additions and 5 deletions
+2 -2
View File
@@ -347,10 +347,10 @@ class AddressValidator extends TextValidator {
pattern = '([1-9A-HJ-NP-Za-km-z]{90,200})|(@[\w\d.-]+)';
default:
if (type.tag == CryptoCurrency.eth.title) {
pattern = '0x[0-9a-zA-Z]{42}';
pattern = '0x[0-9a-zA-Z]+';
}
if (type.tag == CryptoCurrency.maticpoly.tag) {
pattern = '0x[0-9a-zA-Z]{42}';
pattern = '0x[0-9a-zA-Z]+';
}
if (type.tag == CryptoCurrency.sol.title) {
pattern = '[1-9A-HJ-NP-Za-km-z]{43,44}';
@@ -137,10 +137,13 @@ class _RestoreOptionsBodyState extends State<_RestoreOptionsBody> {
}
void _showQRScanError(BuildContext context, String error) {
setState(() => isRestoring = false);
if (mounted) {
setState(() => isRestoring = false);
}
WidgetsBinding.instance.addPostFrameCallback((_) {
showPopUp<void>(
if (mounted) {
showPopUp<void>(
context: context,
builder: (BuildContext context) {
return AlertWithOneAction(
@@ -149,6 +152,7 @@ class _RestoreOptionsBodyState extends State<_RestoreOptionsBody> {
buttonText: S.of(context).ok,
buttonAction: () => Navigator.of(context).pop());
});
}
});
}
@@ -212,7 +212,7 @@ abstract class ExchangeViewModelBase extends WalletChangeListenerViewModel with
List<ExchangeProvider> get _allProviders => [
ChangeNowExchangeProvider(settingsStore: _settingsStore),
SideShiftExchangeProvider(),
// SideShiftExchangeProvider(),
ChainflipExchangeProvider(tradesStore: trades),
if (FeatureFlag.isExolixEnabled) ExolixExchangeProvider(),
SwapTradeExchangeProvider(),