@@ -143,7 +143,7 @@ class KdfCustomTokenImportRepository implements ICustomTokenImportRepository {
143
143
final data = jsonDecode (response.body);
144
144
return data;
145
145
} catch (e) {
146
- log ('Error fetching token image URL : $e ' );
146
+ log ('Error fetching token data from $ url : $e ' );
147
147
return null ;
148
148
}
149
149
}
@@ -155,27 +155,27 @@ class KdfCustomTokenImportRepository implements ICustomTokenImportRepository {
155
155
String ? getNetworkApiName (CoinSubClass coinType) {
156
156
switch (coinType) {
157
157
case CoinSubClass .erc20:
158
- return 'ethereum' ;
158
+ return 'ethereum' ; // https://api.coingecko.com/api/v3/coins/ethereum/contract/0x56072C95FAA701256059aa122697B133aDEd9279
159
159
case CoinSubClass .bep20:
160
- return 'binance-smart-chain' ;
161
- case CoinSubClass .qrc20:
162
- return 'qtum' ;
163
- case CoinSubClass .ftm20:
164
- return 'fantom' ;
160
+ return 'bsc' ; // https://api.coingecko.com/api/v3/coins/bsc/contract/0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0
165
161
case CoinSubClass .arbitrum:
166
- return 'arbitrum-one' ;
162
+ return 'arbitrum-one' ; // https://api.coingecko.com/api/v3/coins/arbitrum-one/contract/0xCBeb19549054CC0a6257A77736FC78C367216cE7
167
163
case CoinSubClass .avx20:
168
- return 'avalanche' ;
164
+ return 'avalanche' ; // https://api.coingecko.com/api/v3/coins/avalanche/contract/0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E
169
165
case CoinSubClass .moonriver:
170
- return 'moonriver' ;
171
- case CoinSubClass .hecoChain:
172
- return 'huobi-token' ;
166
+ return 'moonriver' ; // https://api.coingecko.com/api/v3/coins/moonriver/contract/0x0caE51e1032e8461f4806e26332c030E34De3aDb
173
167
case CoinSubClass .matic:
174
- return 'polygon-pos' ;
175
- case CoinSubClass .hrc20:
176
- return 'harmony-shard-0' ;
168
+ return 'polygon-pos' ; // https://api.coingecko.com/api/v3/coins/polygon-pos/contract/0xdF7837DE1F2Fa4631D716CF2502f8b230F1dcc32
177
169
case CoinSubClass .krc20:
178
- return 'kcc' ;
170
+ return 'kcc' ; // https://api.coingecko.com/api/v3/coins/kcc/contract/0x0039f574ee5cc39bdd162e9a88e3eb1f111baf48
171
+ case CoinSubClass .qrc20:
172
+ return null ; // Unable to find working url
173
+ case CoinSubClass .ftm20:
174
+ return null ; // Unable to find working url
175
+ case CoinSubClass .hecoChain:
176
+ return null ; // Unable to find working url
177
+ case CoinSubClass .hrc20:
178
+ return null ; // Unable to find working url
179
179
default :
180
180
return null ;
181
181
}
0 commit comments