Skip to content

Commit

Permalink
(BIDS-2369) fix GetTotalAmountWithdrawn()
Browse files Browse the repository at this point in the history
  • Loading branch information
LuccaBitfly committed Oct 10, 2023
1 parent be16d14 commit d7c2964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -2386,7 +2386,7 @@ func GetTotalAmountWithdrawn() (sum uint64, count uint64, err error) {
_, lastEpochOfDay := utils.GetFirstAndLastEpochForDay(lastExportedDay)
cutoffSlot := (lastEpochOfDay * utils.Config.Chain.Config.SlotsPerEpoch) + 1

err = ReaderDb.Get(&count, `
err = ReaderDb.Get(&res, `
WITH today AS (
SELECT
COALESCE(SUM(w.amount), 0) as sum,
Expand Down

0 comments on commit d7c2964

Please sign in to comment.