Fix bttc, maticpoly, matic

bttc mapped to trx, so changed the label instead of changing the mapping maticpoly was mislabeled on changenow maticpoly and matic were mislabeled on simpleswap

Justin Ehrenhofer committed Jan 30, 2023 at 14:05 UTC 50d19e706fd97b4789278230ebeea8ff6df1064c
3 files changed +7 -1
cw_core/lib/crypto_currency.dart
+1 -1
@@ -119,7 +119,7 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> {
119 static const ape = CryptoCurrency(title: 'APE', tag: 'ETH', fullName: 'ApeCoin', raw: 30, name: 'ape', iconPath: 'assets/images/ape_icon.png');
120 static const avaxc = CryptoCurrency(title: 'AVAX', tag: 'C-CHAIN', raw: 31, name: 'avaxc', iconPath: 'assets/images/avaxc_icon.png');
121 static const btt = CryptoCurrency(title: 'BTT', tag: 'ETH', fullName: 'BitTorrent', raw: 32, name: 'btt', iconPath: 'assets/images/btt_icon.png');
122 - static const bttc = CryptoCurrency(title: 'BTTC', tag: 'BSC', fullName: 'BitTorrent-NEW', raw: 33, name: 'bttc', iconPath: 'assets/images/bttbsc_icon.png');
122 + static const bttc = CryptoCurrency(title: 'BTTC', tag: 'TRX', fullName: 'BitTorrent-NEW', raw: 33, name: 'bttc', iconPath: 'assets/images/bttbsc_icon.png');
123 static const doge = CryptoCurrency(title: 'DOGE', fullName: 'Dogecoin', raw: 34, name: 'doge', iconPath: 'assets/images/doge_icon.png');
124 static const firo = CryptoCurrency(title: 'FIRO', raw: 35, name: 'firo', iconPath: 'assets/images/firo_icon.png');
125 static const usdttrc20 = CryptoCurrency(title: 'USDT', tag: 'TRX', fullName: 'USDT Tether', raw: 36, name: 'usdttrc20', iconPath: 'assets/images/usdttrc20_icon.png');
lib/exchange/changenow/changenow_exchange_provider.dart
+2
@@ -273,6 +273,8 @@ class ChangeNowExchangeProvider extends ExchangeProvider {
273 return 'zec';
274 case CryptoCurrency.usdcpoly:
275 return 'usdcmatic';
276 + case CryptoCurrency.maticpoly:
277 + return 'maticmainnet';
278 default:
279 return currency.title.toLowerCase();
280 }
lib/exchange/simpleswap/simpleswap_exchange_provider.dart
+4
@@ -231,6 +231,10 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
231 return 'usdcpoly';
232 case CryptoCurrency.usdcsol:
233 return 'usdcspl';
234 + case CryptoCurrency.matic:
235 + return 'maticerc20';
236 + case CryptoCurrency.maticpoly:
237 + return 'matic';
238 default:
239 return currency.title.toLowerCase();
240 }