@typus/typus-sdk 1.6.4 → 1.6.5

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.
@@ -510,7 +510,7 @@ function parseTxHistory(datas, vaults) {
510
510
  break;
511
511
  case "ExerciseEvent":
512
512
  token = (0, constants_1.typeArgToAsset)("0x" + event.parsedJson.token.name);
513
- amount = Number(event.parsedJson.amount) / Math.pow(10, Number(event.parsedJson.decimal));
513
+ amount = Number(event.parsedJson.amount) / Math.pow(10, (0, constants_1.assetToDecimal)(token));
514
514
  Action = "Exercise";
515
515
  Amount = "".concat((0, bignumber_js_1.default)(amount).toFixed(), " ").concat(token);
516
516
  if (event.parsedJson.u64_padding[0]) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.6.4",
5
+ "version": "1.6.5",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.9.34",