Skip to content

Commit

Permalink
fix(exporter): use max instead of sum for el rewards finalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
invis-bitfly committed Jan 9, 2025
1 parent d115d89 commit 2ae1aae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2ae1aae

Please sign in to comment.