mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
V6.5.0 rc (#3674)
* bump: monero_c to v0.18.5.3 * revert deprecated seeds table * update monero_c * update monero_c * update monero_c * v6.5.0 Release candidate Things to test: - Robinhood (new evm wallet) - Monero update (test monero in general) - Restore from backup that is created in previous versions - Charts - Bitcoin accounts (please also test that ltc, bch, doge are working fine without issues) - quick bitcoin sync (also verify other wallets above are working fine) * v6.5.0 Release candidate Things to test: - Robinhood (new evm wallet) - Monero update (test monero in general) - Restore from backup that is created in previous versions - Charts - Bitcoin accounts (please also test that ltc, bch, doge are working fine without issues) - quick bitcoin sync (also verify other wallets above are working fine) * bump: monero fix: ci * fix monero.com build * disable exolix [skip ci] --------- Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>
This commit is contained in:
co-authored by
Czarek Nakamoto
parent
f8a992ce03
commit
5f91c4d262
@@ -415,13 +415,26 @@ class SwapTradeExchangeProvider extends ExchangeProvider {
|
||||
bool _isPairSupported(CryptoCurrency from, CryptoCurrency to) =>
|
||||
_networkFor(from) != null && _networkFor(to) != null;
|
||||
|
||||
String? _networkFor(CryptoCurrency currency) =>
|
||||
switch ((currency.title.toUpperCase(), currency.tag?.toUpperCase())) {
|
||||
("BNB", "BSC") => "BNB_BSC",
|
||||
("USDT", "ETH") => "USDT_ERC20",
|
||||
("USDT", "TRX") => "TRX_USDT_S2UZ",
|
||||
("USDT", "BSC") => "USDT_BSC",
|
||||
(final title, null) => title,
|
||||
_ => null,
|
||||
};
|
||||
String? _networkFor(CryptoCurrency currency) {
|
||||
final network = switch (currency) {
|
||||
CryptoCurrency.eth => 'ETH',
|
||||
CryptoCurrency.bnb => 'BNB_BSC',
|
||||
CryptoCurrency.baseEth => 'BASE',
|
||||
CryptoCurrency.robEth => 'ROB',
|
||||
CryptoCurrency.arb => 'ARB',
|
||||
CryptoCurrency.arbEth => 'ARB',
|
||||
CryptoCurrency.usdterc20 => 'USDT_ERC20',
|
||||
CryptoCurrency.usdttrc20 => 'TRX_USDT_S2UZ',
|
||||
CryptoCurrency.usdtbsc => 'USDT_BSC',
|
||||
CryptoCurrency.sol => 'SOL',
|
||||
CryptoCurrency.btc => 'BTC',
|
||||
CryptoCurrency.xmr => 'XMR',
|
||||
CryptoCurrency.ltc => 'LTC',
|
||||
CryptoCurrency.ada => 'ADA',
|
||||
CryptoCurrency.bch => 'BCH',
|
||||
CryptoCurrency.zec => 'ZEC',
|
||||
_ => currency.tag?.toUpperCase(),
|
||||
};
|
||||
return network;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user