fix(frontend): Charts pair 24h Vol (USD) (#565) #1089
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!1089
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/565-charts-pair-volume-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
formatNums rawvolume_base/volume_quote(the leftover from #540 / #544 AC4).GET /api/v1/pairs/{addr}/statsvolume_usdvia existingformatIndexedVolumeUsd($+ compact; unpriced + trades →—; idle USD0→$0).formatTokenAmountwith that pair’sasset_0/asset_1decimals (factory order). Missing / out-of-range decimals →—. #524 invert does not swap legs or change the USD figure.volume_base/volume_quote. No indexer schema change. Docs, invariants P565-1–P565-7, skillAGENTS_FRONTEND_CHARTS_PAIR_STATS.md, andmake verify-issue-565.Closes #565.
Test plan
847004054/157465643310/volume_usd=763.35→ Vol (USD) matches/\$/and strip does not match/847\.0M|157\.5B/19300000000000000000→ no/T$/on the stats stripvolume_usdnull/0/''+trade_count > 0→—(not$0, not raw fallback)trade_count === 0and USD0→$0NaN, HTML,1e309, 200-char, negative) →—; no<script>injectformatTokenAmountpath; missing/out-of-range decimals →—; 6-dec vs 18-dec lie failsChartsPage.tsxhas noformatNum(stats.volume_base)/formatNum(stats.volume_quote)make verify-issue-565passed twicehttps://dex.cl8y.com/chartsUST1/cUSTC 24h Stats Vol (USD) ≈ curlvolume_usd; token vols ≈ raw ÷ 10^6TAcceptance (issue)
$+ compact) from statsvolume_usdT—trade_count > 0→—volume_base/volume_quoteremain raw (comment-only on indexer response)make verify-issue-565+ docs/skill cross-linkadded 20 commits
main975e0620- Merge origin/main into fix/565-charts-pair-volume-usd.Compare with previous version
mentioned in commit
17790e7db4mentioned in issue #564
mentioned in issue #565
mentioned in issue #573