Skip to content

Commit

Permalink
rounding blocks cl rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha-bitfly committed Dec 17, 2024
1 parent bfaf2e2 commit 2113fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pkg/api/data_access/vdb_blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ func (d *DataAccessService) GetValidatorDashboardBlocks(ctx context.Context, das
From(goqu.L("mainnet.validator_proposal_rewards_slot")).
Select(
goqu.C("slot"),
goqu.L("attestations_reward / 1e9 + sync_aggregate_reward / 1e9 + slasher_reward / 1e9 AS cl_reward"),
goqu.L("attestations_reward + sync_aggregate_reward + slasher_reward AS cl_reward"),
).Where(goqu.C("slot").In(slots))
clRewardsQuerySql, args, err := clRewardsQuery.Prepared(true).ToSQL()
if err != nil {
Expand Down

0 comments on commit 2113fc6

Please sign in to comment.