@icgio/icg-utils 1.6.27 → 1.6.29
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 +5 -0
- 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
|
@@ -11,6 +11,9 @@ let get_coingecko_rates = (cb, pair) => {
|
|
|
11
11
|
if (err) {
|
|
12
12
|
console.error(pair, err)
|
|
13
13
|
return
|
|
14
|
+
} else if (!body[cur_id]) {
|
|
15
|
+
console.error('coingecko cur_id incorrect:', pair, cur_id, vs_cur)
|
|
16
|
+
return
|
|
14
17
|
}
|
|
15
18
|
cb(body[cur_id][vs_cur])
|
|
16
19
|
})
|
|
@@ -106,6 +109,8 @@ let get_coingecko_rates = (cb, pair) => {
|
|
|
106
109
|
// let cur = line.symbol.toUpperCase()
|
|
107
110
|
// _.set(map, [cur], line.id)
|
|
108
111
|
// }
|
|
112
|
+
|
|
113
|
+
// map['ETH'] = 'ethereum'
|
|
109
114
|
|
|
110
115
|
// console.log(JSON.stringify(map, null, 4))
|
|
111
116
|
// })
|