Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha-bitfly committed Jan 17, 2025
1 parent 7a31f2a commit 76900e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/pkg/api/data_access/vdb_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,14 +557,16 @@ func (d *DataAccessService) GetValidatorDashboardGroupSummary(ctx context.Contex
)
}

slots := utils.Config.Chain.ClConfig.SlotsPerEpoch / 2

// Define the `res` CTE
res := goqu.
From("targets").
LeftJoin(
goqu.T("execution_rewards_finalized").As("b"),
goqu.On(
goqu.I("b.slot").Gte(goqu.L("targets.slot - 16")),
goqu.I("b.slot").Lt(goqu.L("targets.slot + 16")),
goqu.I("b.slot").Gte(goqu.L("targets.slot - ?", slots)),
goqu.I("b.slot").Lt(goqu.L("targets.slot + ?", slots)),
),
).
Select(
Expand Down

0 comments on commit 76900e4

Please sign in to comment.