Enable exchange for haven wallets. (#495)

This commit is contained in:
mkyq
2022-09-01 19:46:14 +01:00
committed by GitHub
parent 0931696fa1
commit 04be884357
5 changed files with 14 additions and 23 deletions
@@ -19,7 +19,9 @@ class ChangeNowExchangeProvider extends ExchangeProvider {
: _lastUsedRateId = '',
super(
pairList: CryptoCurrency.all
.where((i) => i != CryptoCurrency.xhv)
.map((i) => CryptoCurrency.all
.where((i) => i != CryptoCurrency.xhv)
.map((k) => ExchangePair(from: i, to: k, reverse: true))
.where((c) => c != null))
.expand((i) => i)
@@ -19,7 +19,9 @@ class SideShiftExchangeProvider extends ExchangeProvider {
SideShiftExchangeProvider()
: super(
pairList: CryptoCurrency.all
.where((i) => i != CryptoCurrency.xhv)
.map((i) => CryptoCurrency.all
.where((i) => i != CryptoCurrency.xhv)
.map((k) => ExchangePair(from: i, to: k, reverse: true))
.where((c) => c != null))
.expand((i) => i)