Skip to content

Commit

Permalink
aggregate last 30d
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Dec 9, 2024
1 parent 8100107 commit 83dc2e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/jobs/aggregateHourlyVolume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async function aggregateHourlyVolume() {
AND (ha.total_withdrawn_usd IS NOT NULL AND ha.total_withdrawn_usd::text ~ '^[0-9]+(\.[0-9]+)?$')
AND (ha.total_deposit_txs IS NOT NULL AND ha.total_deposit_txs::text ~ '^[0-9]+$')
AND (ha.total_withdrawal_txs IS NOT NULL AND ha.total_withdrawal_txs::text ~ '^[0-9]+$')
AND ha.ts >= NOW() - INTERVAL '30 days'
ON CONFLICT (bridge_id, ts, chain) DO UPDATE SET
total_deposited_usd = EXCLUDED.total_deposited_usd,
total_withdrawn_usd = EXCLUDED.total_withdrawn_usd,
Expand Down

0 comments on commit 83dc2e6

Please sign in to comment.