@pioneer-platform/pioneer-balance 8.3.40 → 8.3.41

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.
Files changed (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -241,8 +241,8 @@ var Balance = /** @class */ (function () {
241
241
  console.log(tag, 'mayachain.getBalances result: ', result);
242
242
  mayaBalance = result.find(function (balance) { return balance.denom === 'maya'; });
243
243
  if (mayaBalance) {
244
- // Convert from raw amount to decimal (maya has 4 decimals)
245
- asset.balance = (parseInt(mayaBalance.amount) / 1e4).toString();
244
+ // Maya network already converts the amount, so use the decimal value directly
245
+ asset.balance = mayaBalance.amount.toString();
246
246
  console.log(tag, 'MAYA token balance found: ', asset.balance);
247
247
  }
248
248
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pioneer-balance",
3
- "version": "8.3.40",
3
+ "version": "8.3.41",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/main.d.ts",
6
6
  "scripts": {