mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-27 14:09:50 +00:00
13 lines
462 B
Dart
13 lines
462 B
Dart
|
import 'package:cake_wallet/exchange/exchange_pair.dart';
|
||
|
import 'package:cw_core/crypto_currency.dart';
|
||
|
|
||
|
List<ExchangePair> supportedPairs(List<CryptoCurrency> notSupported) {
|
||
|
final supportedCurrencies =
|
||
|
CryptoCurrency.all.where((element) => !notSupported.contains(element)).toList();
|
||
|
|
||
|
return supportedCurrencies
|
||
|
.map((i) => supportedCurrencies.map((k) => ExchangePair(from: i, to: k, reverse: true)))
|
||
|
.expand((i) => i)
|
||
|
.toList();
|
||
|
}
|