diff --git a/backend/pkg/exporter/modules/execution_rewards_finalizer.go b/backend/pkg/exporter/modules/execution_rewards_finalizer.go index 34c6a115d..13a6529af 100644 --- a/backend/pkg/exporter/modules/execution_rewards_finalizer.go +++ b/backend/pkg/exporter/modules/execution_rewards_finalizer.go @@ -105,7 +105,7 @@ func (d *executionRewardsFinalizer) maintainTable() (err error) { goqu.I("b.epoch").As("epoch"), goqu.I("b.slot").As("slot"), goqu.I("b.proposer").As("proposer"), - goqu.Func("sum", goqu.COALESCE(goqu.I("rb.value"), goqu.L("ep.fee_recipient_reward * '1e18'::numeric"), goqu.L("0::numeric"))).As("value"), + goqu.Func("max", goqu.COALESCE(goqu.I("rb.value"), goqu.L("ep.fee_recipient_reward * '1e18'::numeric"), goqu.L("0::numeric"))).As("value"), ). Where( goqu.I("b.slot").Gt(lastExportedSlot),