remove HUSD and rename BTTBSC
Serhii committed
Nov 30, 2022 at 21:18 UTC
292c4c396cc2a313d3b3a352c10bb8caebbe39d1
4 files changed
+18
-22
assets/images/husd_icon.png
Binary files a/assets/images/husd_icon.png and /dev/null differ
cw_core/lib/crypto_currency.dart
+16
-18
@@ -36,7 +36,7 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> {
36
CryptoCurrency.ape,
37
CryptoCurrency.avaxc,
38
CryptoCurrency.btt,
39
- CryptoCurrency.bttbsc,
39
+ CryptoCurrency.bttc,
40
CryptoCurrency.doge,
41
CryptoCurrency.firo,
42
CryptoCurrency.usdttrc20,
@@ -51,7 +51,6 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> {
51
CryptoCurrency.xvg,
52
CryptoCurrency.usdcpoly,
53
CryptoCurrency.dcr,
54
- CryptoCurrency.husd,
54
CryptoCurrency.kmd,
55
CryptoCurrency.mana,
56
CryptoCurrency.maticpoly,
@@ -103,7 +102,7 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> {
102
static const ape = CryptoCurrency(title: 'APE', iconPath: 'assets/images/ape_icon.png', tag: 'ETH', raw: 30, name: 'ape');
103
static const avaxc = CryptoCurrency(title: 'AVAX', iconPath: 'assets/images/avaxc_icon.png', tag: 'C-CHAIN', raw: 31, name: 'avaxc');
104
static const btt = CryptoCurrency(title: 'BTT', iconPath: 'assets/images/btt_icon.png', raw: 32, name: 'btt');
106
- static const bttbsc = CryptoCurrency(title: 'BTT', iconPath: 'assets/images/bttbsc_icon.png', tag: 'BSC', raw: 33, name: 'bttbsc');
105
+ static const bttc = CryptoCurrency(title: 'BTTC', iconPath: 'assets/images/bttbsc_icon.png',fullName: 'BitTorrent-NEW (Binance Smart Chain)', tag: 'BSC', raw: 33, name: 'bttc');
106
static const doge = CryptoCurrency(title: 'DOGE', iconPath: 'assets/images/doge_icon.png', raw: 34, name: 'doge');
107
static const firo = CryptoCurrency(title: 'FIRO', iconPath: 'assets/images/firo_icon.png', raw: 35, name: 'firo');
108
static const usdttrc20 = CryptoCurrency(title: 'USDT', iconPath: 'assets/images/usdttrc20_icon.png', tag: 'TRX', raw: 36, name: 'usdttrc20');
@@ -119,21 +118,20 @@ class CryptoCurrency extends EnumerableItem<int> with Serializable<int> {
118
119
static const usdcpoly = CryptoCurrency(title: 'USDC', iconPath: 'assets/images/usdc_icon.png', tag: 'POLY', raw: 46, name: 'usdcpoly');
120
static const dcr = CryptoCurrency(title: 'DCR', iconPath: 'assets/images/dcr_icon.png', raw: 47, name: 'dcr');
122
- static const husd = CryptoCurrency(title: 'HUSD', iconPath: 'assets/images/husd_icon.png', tag: 'ETH', raw: 48, name: 'husd');
123
- static const kmd = CryptoCurrency(title: 'KMD', iconPath: 'assets/images/kmd_icon.png', raw: 49, name: 'kmd');
124
- static const mana = CryptoCurrency(title: 'MANA', iconPath: 'assets/images/mana_icon.png', tag: 'ETH', raw: 50, name: 'mana');
125
- static const maticpoly = CryptoCurrency(title: 'MATIC', iconPath: 'assets/images/matic_icon.png', tag: 'POLY', raw: 51, name: 'maticpoly');
126
- static const matic = CryptoCurrency(title: 'MATIC', iconPath: 'assets/images/matic_icon.png', tag: 'ETH', raw: 52, name: 'matic');
127
- static const mkr = CryptoCurrency(title: 'MKR', iconPath: 'assets/images/mkr_icon.png', tag: 'ETH', raw: 53, name: 'mkr');
128
- static const near = CryptoCurrency(title: 'NEAR', iconPath: 'assets/images/near_icon.png', raw: 54, name: 'near');
129
- static const oxt = CryptoCurrency(title: 'OXT', iconPath: 'assets/images/oxt_icon.png', tag: 'ETH', raw: 55, name: 'oxt');
130
- static const paxg = CryptoCurrency(title: 'PAXG', iconPath: 'assets/images/paxg_icon.png', tag: 'ETH', raw: 56, name: 'paxg');
131
- static const pivx = CryptoCurrency(title: 'PIVX', iconPath: 'assets/images/pivx_icon.png', raw: 57, name: 'pivx');
132
- static const rune = CryptoCurrency(title: 'RUNE', iconPath: 'assets/images/rune_icon.png', raw: 58, name: 'rune');
133
- static const rvn = CryptoCurrency(title: 'RVN', iconPath: 'assets/images/rvn_icon.png', raw: 59, name: 'rvn');
134
- static const scrt = CryptoCurrency(title: 'SCRT', iconPath: 'assets/images/scrt_icon.png', raw: 60, name: 'scrt');
135
- static const uni = CryptoCurrency(title: 'UNI', iconPath: 'assets/images/uni_icon.png', tag: 'ETH', raw: 61, name: 'uni');
136
- static const stx = CryptoCurrency(title: 'STX', iconPath: 'assets/images/stx_icon.png', raw: 62, name: 'stx');
121
+ static const kmd = CryptoCurrency(title: 'KMD', iconPath: 'assets/images/kmd_icon.png', raw: 48, name: 'kmd');
122
+ static const mana = CryptoCurrency(title: 'MANA', iconPath: 'assets/images/mana_icon.png', tag: 'ETH', raw: 49, name: 'mana');
123
+ static const maticpoly = CryptoCurrency(title: 'MATIC', iconPath: 'assets/images/matic_icon.png', tag: 'POLY', raw: 50, name: 'maticpoly');
124
+ static const matic = CryptoCurrency(title: 'MATIC', iconPath: 'assets/images/matic_icon.png', tag: 'ETH', raw: 51, name: 'matic');
125
+ static const mkr = CryptoCurrency(title: 'MKR', iconPath: 'assets/images/mkr_icon.png', tag: 'ETH', raw: 52, name: 'mkr');
126
+ static const near = CryptoCurrency(title: 'NEAR', iconPath: 'assets/images/near_icon.png', raw: 53, name: 'near');
127
+ static const oxt = CryptoCurrency(title: 'OXT', iconPath: 'assets/images/oxt_icon.png', tag: 'ETH', raw: 54, name: 'oxt');
128
+ static const paxg = CryptoCurrency(title: 'PAXG', iconPath: 'assets/images/paxg_icon.png', tag: 'ETH', raw: 55, name: 'paxg');
129
+ static const pivx = CryptoCurrency(title: 'PIVX', iconPath: 'assets/images/pivx_icon.png', raw: 56, name: 'pivx');
130
+ static const rune = CryptoCurrency(title: 'RUNE', iconPath: 'assets/images/rune_icon.png', raw: 57, name: 'rune');
131
+ static const rvn = CryptoCurrency(title: 'RVN', iconPath: 'assets/images/rvn_icon.png', raw: 58, name: 'rvn');
132
+ static const scrt = CryptoCurrency(title: 'SCRT', iconPath: 'assets/images/scrt_icon.png', raw: 59, name: 'scrt');
133
+ static const uni = CryptoCurrency(title: 'UNI', iconPath: 'assets/images/uni_icon.png', tag: 'ETH', raw: 60, name: 'uni');
134
+ static const stx = CryptoCurrency(title: 'STX', iconPath: 'assets/images/stx_icon.png', raw: 61, name: 'stx');
135
136
static final Map<int, CryptoCurrency> _rawCurrencyMap =
137
all.fold<Map<int, CryptoCurrency>>(<int, CryptoCurrency>{}, (acc, item) {
lib/core/address_validator.dart
+1
-3
@@ -24,7 +24,6 @@ class AddressValidator extends TextValidator {
24
return '[0-9a-zA-Z_]';
25
case CryptoCurrency.usdc:
26
case CryptoCurrency.usdcpoly:
27
- case CryptoCurrency.husd:
27
case CryptoCurrency.ape:
28
case CryptoCurrency.avaxc:
29
case CryptoCurrency.eth:
@@ -156,7 +155,7 @@ class AddressValidator extends TextValidator {
155
return [98, 99, 106];
156
case CryptoCurrency.btt:
157
return [34];
159
- case CryptoCurrency.bttbsc:
158
+ case CryptoCurrency.bttc:
159
return [34];
160
case CryptoCurrency.doge:
161
return [34];
@@ -181,7 +180,6 @@ class AddressValidator extends TextValidator {
180
case CryptoCurrency.stx:
181
return [40, 41, 42];
182
case CryptoCurrency.usdcpoly:
184
- case CryptoCurrency.husd:
183
case CryptoCurrency.mana:
184
case CryptoCurrency.matic:
185
case CryptoCurrency.maticpoly:
lib/exchange/sideshift/sideshift_exchange_provider.dart
+1
-1
@@ -28,7 +28,6 @@ class SideShiftExchangeProvider extends ExchangeProvider {
28
static const List<CryptoCurrency> _notSupported = [
29
CryptoCurrency.xhv,
30
CryptoCurrency.dcr,
31
- CryptoCurrency.husd,
31
CryptoCurrency.kmd,
32
CryptoCurrency.mkr,
33
CryptoCurrency.near,
@@ -39,6 +38,7 @@ class SideShiftExchangeProvider extends ExchangeProvider {
38
CryptoCurrency.rvn,
39
CryptoCurrency.scrt,
40
CryptoCurrency.stx,
41
+ CryptoCurrency.bttc,
42
];
43
44
static List<ExchangePair> _supportedPairs() {