fix(indexer): decay idle token/trader windows and flag stale overview (#577) #1099
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!1099
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/577-rollup-decay"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
token_volume_statsand tradervolume_24h/7d/30dnow zero whenswap_eventsleave the trailing cutoff (same pattern as idlepair_volume_24h).refresh_all_volume_windows), not after the 5 min loop sleep./overviewstill servesglobal_stats_24hon GET. Ifupdated_atis older than 15 minutes, the indexer logs a warning and does not live-scan 30dswap_events(V5 / #281 / #333).Closes #577
Test plan
make verify-issue-577(Postgres +indexer/.env; no wasm deploy)GET /api/v1/tokens/{addr}volume_statswindow24his 0;7dstill countstotal_volume/total_volume_usdunchangedpair_volume_24h.volume_quote = 0;sort=volume_24hdoes not rank it as liveglobal_stats_24htrades/volume decrease (to 0 if none remain)SELECT updated_at FROM global_stats_24h WHERE id = 1advances on a running indexer; age > 15 min produces the stale rollup tracing warningadded 16 commits
main39c6cb38- Merge origin/main into fix/577-rollup-decay.Compare with previous version
mentioned in commit
704e5b9793mentioned in issue #576
mentioned in issue #577
mentioned in issue #583