mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 04:19:50 +00:00
add USDT Binance Smart Chain (BSC) support (#2341)
This commit is contained in:
parent
900304d405
commit
d0827dd39e
4 changed files with 7 additions and 2 deletions
BIN
assets/images/usdtbsc_icon.png
Normal file
BIN
assets/images/usdtbsc_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 920 B |
|
@ -111,7 +111,8 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> implemen
|
|||
CryptoCurrency.zano,
|
||||
CryptoCurrency.ton,
|
||||
CryptoCurrency.flip,
|
||||
CryptoCurrency.deuro
|
||||
CryptoCurrency.deuro,
|
||||
CryptoCurrency.usdtbsc,
|
||||
];
|
||||
|
||||
static const havenCurrencies = [
|
||||
|
@ -233,6 +234,7 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> implemen
|
|||
static const zano = CryptoCurrency(title: 'ZANO', tag: 'ZANO', fullName: 'Zano', raw: 96, name: 'zano', iconPath: 'assets/images/zano_icon.png', decimals: 12);
|
||||
static const flip = CryptoCurrency(title: 'FLIP', tag: 'ETH', fullName: 'Chainflip', raw: 97, name: 'flip', iconPath: 'assets/images/flip_icon.png', decimals: 18);
|
||||
static const deuro = CryptoCurrency(title: 'DEURO', tag: 'ETH', fullName: 'Decentralized Euro', raw: 98, name: 'deuro', iconPath: 'assets/images/deuro_icon.png', decimals: 18);
|
||||
static const usdtbsc = CryptoCurrency(title: 'USDT', tag: 'BSC', fullName: 'USDT Binance coin', raw: 99, name: 'usdtbsc', iconPath: 'assets/images/usdtbsc_icon.png', decimals: 18);
|
||||
|
||||
static final Map<int, CryptoCurrency> _rawCurrencyMap =
|
||||
[...all, ...havenCurrencies].fold<Map<int, CryptoCurrency>>(<int, CryptoCurrency>{}, (acc, item) {
|
||||
|
|
|
@ -23,6 +23,7 @@ class ThorChainExchangeProvider extends ExchangeProvider {
|
|||
// CryptoCurrency.eth,
|
||||
CryptoCurrency.ltc,
|
||||
CryptoCurrency.bch,
|
||||
CryptoCurrency.usdtbsc,
|
||||
// CryptoCurrency.aave,
|
||||
// CryptoCurrency.dai,
|
||||
// CryptoCurrency.gusd,
|
||||
|
@ -259,7 +260,7 @@ class ThorChainExchangeProvider extends ExchangeProvider {
|
|||
}
|
||||
|
||||
String _normalizeCurrency(CryptoCurrency currency) {
|
||||
final networkTitle = currency.tag == 'ETH' ? 'ETH' : currency.title;
|
||||
final networkTitle = currency.tag == 'ETH' ? 'ETH' : currency.tag ?? currency.title;
|
||||
return '$networkTitle.${currency.title}';
|
||||
}
|
||||
|
||||
|
|
|
@ -347,6 +347,8 @@ class TrocadorExchangeProvider extends ExchangeProvider {
|
|||
return 'TRC20';
|
||||
case 'LN':
|
||||
return 'Lightning';
|
||||
case 'BSC':
|
||||
return 'BEP20';
|
||||
default:
|
||||
return tag.toLowerCase();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue