@ethereansos/interfaces-core 0.4.101 → 0.4.102

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/dist/index.cjs.js CHANGED
@@ -50367,14 +50367,15 @@ function fromDecimals(number, decimals, skipFormat) {
50367
50367
  return '0';
50368
50368
  }
50369
50369
 
50370
+ number = numberToString(number).split('.')[0];
50370
50371
  var symbol = toEthereumSymbol(decimals);
50371
50372
 
50372
50373
  if (symbol) {
50373
- var result = web3Utils__default["default"].fromWei(numberToString(number), symbol);
50374
+ var result = web3Utils__default["default"].fromWei(number, symbol);
50374
50375
  return skipFormat === true ? result : formatMoney(result);
50375
50376
  }
50376
50377
 
50377
- var nts = parseFloat(numberToString(number / (decimals < 2 ? 1 : Math.pow(10, decimals)))); // TODO verify if is expected that is rounded to 2 decimals
50378
+ var nts = parseFloat(numberToString(parseFloat(number) / (decimals < 2 ? 1 : Math.pow(10, decimals)))); // TODO verify if is expected that is rounded to 2 decimals
50378
50379
 
50379
50380
  return skipFormat === true ? numberToString(nts) : formatMoney(nts);
50380
50381
  }