@icgio/icg-utils 1.6.28 → 1.6.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/coingecko-coins-map.js +1 -1
- package/lib/coingecko.js +3 -1
- package/package.json +1 -1
|
@@ -3528,7 +3528,7 @@ module.exports = {
|
|
|
3528
3528
|
"OS": "osmoscoin",
|
|
3529
3529
|
"ETH2SOCKS": "etherean-socks",
|
|
3530
3530
|
"EMONT": "etheremontoken",
|
|
3531
|
-
"ETH": "ethereum
|
|
3531
|
+
"ETH": "ethereum",
|
|
3532
3532
|
"EAPEX": "ethereum-apex",
|
|
3533
3533
|
"ECASH": "ethereum-cash-token",
|
|
3534
3534
|
"ETC": "ethereum-classic",
|
package/lib/coingecko.js
CHANGED
|
@@ -12,7 +12,7 @@ let get_coingecko_rates = (cb, pair) => {
|
|
|
12
12
|
console.error(pair, err)
|
|
13
13
|
return
|
|
14
14
|
} else if (!body[cur_id]) {
|
|
15
|
-
console.error('coingecko cur_id incorrect:', pair, cur_id, vs_cur)
|
|
15
|
+
console.error('coingecko cur_id incorrect:', pair, cur_id, vs_cur, err)
|
|
16
16
|
return
|
|
17
17
|
}
|
|
18
18
|
cb(body[cur_id][vs_cur])
|
|
@@ -109,6 +109,8 @@ let get_coingecko_rates = (cb, pair) => {
|
|
|
109
109
|
// let cur = line.symbol.toUpperCase()
|
|
110
110
|
// _.set(map, [cur], line.id)
|
|
111
111
|
// }
|
|
112
|
+
|
|
113
|
+
// map['ETH'] = 'ethereum'
|
|
112
114
|
|
|
113
115
|
// console.log(JSON.stringify(map, null, 4))
|
|
114
116
|
// })
|