@typus/typus-sdk 1.4.81 → 1.4.82
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.
|
@@ -199,7 +199,7 @@ function parseTxHistory(datas) {
|
|
|
199
199
|
}
|
|
200
200
|
break;
|
|
201
201
|
case "reduce_fund":
|
|
202
|
-
totalWithdrawAmount = (0, bignumber_js_1.default)(log[2]).plus(log[
|
|
202
|
+
totalWithdrawAmount = (0, bignumber_js_1.default)(log[2]).plus(log[4]);
|
|
203
203
|
if (totalWithdrawAmount.gt(0)) {
|
|
204
204
|
txHistory.push({
|
|
205
205
|
Action: "Withdraw",
|
|
@@ -212,6 +212,18 @@ function parseTxHistory(datas) {
|
|
|
212
212
|
log: log,
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
|
+
if (Number(log[3]) > 0) {
|
|
216
|
+
txHistory.push({
|
|
217
|
+
Action: "Unsubscribe",
|
|
218
|
+
Index: log[0],
|
|
219
|
+
Amount: divByDecimal(Number(log[3]), decimal),
|
|
220
|
+
Token: Token,
|
|
221
|
+
Exp: log[5],
|
|
222
|
+
Date: new Date(Number(event.timestampMs)),
|
|
223
|
+
txDigest: event.id.txDigest,
|
|
224
|
+
log: log,
|
|
225
|
+
});
|
|
226
|
+
}
|
|
215
227
|
break;
|
|
216
228
|
case "claim_reward":
|
|
217
229
|
txHistory.push({
|