add new coins to exchange (#499)

* add new coins

APE, AVAXC, BTT, BTTBSC, DOGE, FIRO, USDTTRC20, HBAR, SC, SOL, USDC, USDCSOL, ZEN, XVG

* remove UST icon

* remove xhv from excludeDepositCurrencies

* remove xhv from excludeReceiveCurrencies
This commit is contained in:
Serhii
2022-09-07 13:10:21 +01:00
committed by GitHub
parent bed815e370
commit f59c2fbd2b
21 changed files with 105 additions and 16 deletions
@@ -96,12 +96,12 @@ class ChangeNowExchangeProvider extends ExchangeProvider {
'Content-Type': 'application/json'};
final flow = getFlow(isFixedRateMode);
final body = <String, String>{
'fromCurrency': normalizeCryptoCurrency(_request.from),
'fromCurrency': normalizeCryptoCurrency(_request.from),
'toCurrency': normalizeCryptoCurrency(_request.to),
'fromNetwork': networkFor(_request.from),
'toNetwork': networkFor(_request.to),
'fromAmount': _request.fromAmount,
'toAmount': _request.toAmount,
'fromAmount': _request.fromAmount,
'toAmount': _request.toAmount,
'address': _request.address,
'flow': flow,
'refundAddress': _request.refundAddress
@@ -69,6 +69,5 @@ class PickerItemWidget extends StatelessWidget {
),
),
);
;
}
}
@@ -40,8 +40,9 @@ class ExchangeViewModel = ExchangeViewModelBase with _$ExchangeViewModel;
abstract class ExchangeViewModelBase with Store {
ExchangeViewModelBase(this.wallet, this.trades, this._exchangeTemplateStore,
this.tradesStore, this._settingsStore, this.sharedPreferences) {
const excludeDepositCurrencies = <CryptoCurrency>[];
const excludeReceiveCurrencies = [CryptoCurrency.xlm, CryptoCurrency.xrp, CryptoCurrency.bnb];
const excludeDepositCurrencies = [CryptoCurrency.btt, CryptoCurrency.nano];
const excludeReceiveCurrencies = [CryptoCurrency.xlm, CryptoCurrency.xrp,
CryptoCurrency.bnb, CryptoCurrency.btt, CryptoCurrency.nano];
providerList = [ChangeNowExchangeProvider(), SideShiftExchangeProvider(), SimpleSwapExchangeProvider()];
_initialPairBasedOnWallet();
currentTradeAvailableProviders = SplayTreeMap<double, ExchangeProvider>();