@icgio/icg-exchanges-wrapper 1.9.21 → 1.9.22

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.
@@ -110,9 +110,9 @@ module.exports = class Account {
110
110
  }
111
111
  for (let cur in balances[exchange].total) {
112
112
  if (_.includes(constants.stablecoins, cur)) {
113
- _.set(exchange_distribution, [exchange, cur], (balances[exchange].total[cur] * _.get(cmc_rates, [cur, 'USD'], 0) / total_in_USD * 100).toPrecision(5) + '%')
114
- } else {
115
113
  _.set(exchange_distribution, [exchange, cur], (balances[exchange].total[cur] * 1 / total_in_USD * 100).toPrecision(5) + '%')
114
+ } else {
115
+ _.set(exchange_distribution, [exchange, cur], (balances[exchange].total[cur] * _.get(cmc_rates, [cur, 'USD'], 0) / total_in_USD * 100).toPrecision(5) + '%')
116
116
  }
117
117
  }
118
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.9.21",
3
+ "version": "1.9.22",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {