We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d326da0 commit a317d9bCopy full SHA for a317d9b
src/worker/staticFeeDistribution.ts
@@ -325,18 +325,20 @@ export async function trackBalanceChangeByTx(
325
networkId: sdk.networkId
326
});
327
const deposit = stakeAction.deposit;
328
- queries.push(
329
- CCCChangeModel.stakeDeposit(
330
- {
331
- address: signer.value,
332
- change: deposit,
333
- isNegative: true,
334
- blockNumber,
335
- transactionHash
336
- },
337
- { transaction }
338
- )
339
- );
+ if (deposit.isGreaterThan(0)) {
+ queries.push(
+ CCCChangeModel.stakeDeposit(
+ {
+ address: signer.value,
+ change: deposit,
+ isNegative: true,
+ blockNumber,
+ transactionHash
+ },
+ { transaction }
+ )
340
+ );
341
+ }
342
break;
343
}
344
case "reportDoubleVote": {
0 commit comments