From 222ff2065ccaf31e39a107f4c383318f02c27261 Mon Sep 17 00:00:00 2001 From: Vladimir Gorkavenko <32727352+vgorkavenko@users.noreply.github.com> Date: Mon, 30 Jan 2023 17:31:36 +0500 Subject: [PATCH] fix: get balance diff in rewards query (#125) --- src/storage/clickhouse/clickhouse.constants.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/storage/clickhouse/clickhouse.constants.ts b/src/storage/clickhouse/clickhouse.constants.ts index d28fba43..4dc50e01 100644 --- a/src/storage/clickhouse/clickhouse.constants.ts +++ b/src/storage/clickhouse/clickhouse.constants.ts @@ -480,7 +480,6 @@ export const userNodeOperatorsRewardsAndPenaltiesStats = (epoch: Epoch): string SELECT val_balance, val_id, val_nos_id FROM validators_summary as curr WHERE - val_status != '${ValStatus.PendingQueued}' AND val_nos_id IS NOT NULL AND epoch = ${epoch} LIMIT 1 BY val_id @@ -490,7 +489,6 @@ export const userNodeOperatorsRewardsAndPenaltiesStats = (epoch: Epoch): string SELECT val_balance, val_id, val_nos_id FROM validators_summary WHERE - val_status != '${ValStatus.PendingQueued}' AND val_nos_id IS NOT NULL AND epoch = (${epoch} - 1) LIMIT 1 BY val_id