@icgio/icg-utils 1.7.63 → 1.7.64

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.
@@ -336,22 +336,6 @@ let get_crypto_rates = (cb, pair_or_pairs_or_cur_curs, type, source = 'coingecko
336
336
  console.error(error)
337
337
  }
338
338
  })
339
- } else if (type === 'curs' && _.includes(pair_or_pairs_or_cur_curs, 'GPT')) {
340
- let curs = _.without(pair_or_pairs_or_cur_curs, 'GPT')
341
- needle('get', 'https://api.coinstore.com/api/v1/market/depth/gptusdt').then((res) => {
342
- try {
343
- const asks = res.body.data.a
344
- const bids = res.body.data.b
345
- let rate = parseFloat(asks[0][0])
346
- result.GPT = {
347
- USD: rate,
348
- USDT: rate,
349
- }
350
- get_crypto_rates(cb, curs, type, source)
351
- } catch (error) {
352
- console.error(error)
353
- }
354
- })
355
339
  } else if (type === 'curs' && _.includes(pair_or_pairs_or_cur_curs, 'IUS')) {
356
340
  let curs = _.without(pair_or_pairs_or_cur_curs, 'IUS')
357
341
  needle('get', 'https://www.mexc.com/open/api/v2/market/depth?symbol=IUS_USDT&depth=100').then((res) => {
package/lib/utils.js CHANGED
@@ -27,12 +27,7 @@ const stablecoins = require('../constants/stablecoins')
27
27
  // console.log(0.000000000000000000000000001232312421.toFixed(30))
28
28
 
29
29
  Number.prototype.toStringNoExponents = function () {
30
- let data
31
- if (_.isString(this)) {
32
- data = this.split(/[eE]/)
33
- } else {
34
- data = String(this).split(/[eE]/)
35
- }
30
+ let data = String(this).split(/[eE]/)
36
31
  if (data.length == 1) {
37
32
  return data[0]
38
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-utils",
3
- "version": "1.7.63",
3
+ "version": "1.7.64",
4
4
  "description": "Utils package.",
5
5
  "main": "index.js",
6
6
  "directories": {