fix: Charts overview 24h volume USD-only (#548) #1076
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!1076
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/548-charts-overview-usd"
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
/chartsoverview strip is USD-only (no rawvolume_24hbox). Unpriced 24h activity shows—; idle shows$0.swaps.volume_usdwith the shared P522-Q helper (catalog USTC/LUNC/UST1; quote preferred; never sum both legs). Idempotent backfill migration for historical rows.token_countis the union of pair-leg assets.GET /overviewtotal_volume_24h_usdis a decimal string,"0", or JSONnullwhen trades exist but none are priced. Rawtotal_volume_24hstays for integrators.Closes #548.
#544 should reuse
volume_usd_for_swaprather than a second formula. After indexer deploy, run the backfill migration so historical UST1/USTRvolume_usdis filled; rollup lag is ~5 min plus the 60s overview cache.Test plan
make verify-issue-548(docs, code grep, frontend Vitest, indexer lib, integration)/chartsvolume matchesGET /overviewtotal_volume_24h_usdustc_price_usd, not compactTnotationmentioned in commit
11b1117edamentioned in issue #548
mentioned in issue #547
mentioned in issue #550
mentioned in issue #552