@typus/typus-sdk 1.4.67 → 1.4.68

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.
@@ -137,11 +137,13 @@ function parseTxHistory(datas) {
137
137
  // console.log(asset, decimal);
138
138
  switch (action) {
139
139
  case "raise_fund":
140
- if (Number(log[2]) + Number(log[3]) + Number(log[4]) > 0) {
140
+ // balance_value, deactivating_value, inactive_value,
141
+ // Number(log[2]) + Number(log[3]) + Number(log[4])
142
+ if (Number(log[2]) > 0) {
141
143
  txHistory.push({
142
144
  Action: "Deposit",
143
145
  Index: log[0],
144
- Amount: divByDecimal(Number(log[2]) + Number(log[3]) + Number(log[4]), decimal),
146
+ Amount: divByDecimal(Number(log[2]), decimal),
145
147
  Token: Token,
146
148
  Exp: log[6],
147
149
  Date: new Date(Number(event.timestampMs)),
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.4.67",
5
+ "version": "1.4.68",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.8.10",