exclude zzec currency from simple swap (#516)

Omar Hatem committed Oct 20, 2022 at 19:54 UTC 4279b82bca4713c8157085a51c7edd2eadb8749c
1 file changed +5 -2
lib/exchange/simpleswap/simpleswap_exchange_provider.dart
+5 -2
@@ -17,8 +17,11 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
17 SimpleSwapExchangeProvider()
18 : super(
19 pairList: CryptoCurrency.all
20 - .map((i) =>
21 - CryptoCurrency.all.map((k) => ExchangePair(from: i, to: k, reverse: true)).where((c) => c != null))
20 + .where((i) => i != CryptoCurrency.zaddr)
21 + .map((i) => CryptoCurrency.all
22 + .where((i) => i != CryptoCurrency.zaddr)
23 + .map((k) => ExchangePair(from: i, to: k, reverse: true))
24 + .where((c) => c != null))
25 .expand((i) => i)
26 .toList());
27