add USDT Binance Smart Chain (BSC) support (#2341)

This commit is contained in:
Serhii 2025-06-27 15:47:34 +03:00 committed by GitHub
parent 900304d405
commit d0827dd39e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 2 deletions

View file

@ -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}';
}

View file

@ -347,6 +347,8 @@ class TrocadorExchangeProvider extends ExchangeProvider {
return 'TRC20';
case 'LN':
return 'Lightning';
case 'BSC':
return 'BEP20';
default:
return tag.toLowerCase();
}