WIP: Draft: feat(charts): pair-scoped 24h stats and leaderboard (#666) #1174
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!1174
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "666-feat-charts-pair-scoped-24h-stats-leaderboard-drop-global-overview-"
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
/chartsis pair-contextual: Find pair → pair 24h Stats → PriceChart → TWAP → trades → leaderboard. DEX census (Pairs / Tokens / USTC / global vol) stays on/protocol.GET /api/v1/traders/leaderboard?pair=. Volume/trades come fromswap_eventsfor that pair; Most Profit / Most Loss fromtrader_positions.realized_pnl. Best Trade is hidden;pair=+sort=best_trade_pnlis 400. Unknown pair is 404 (not cached as empty). Unscoped leaderboard andGET /overvieware unchanged.skills/AGENTS_FRONTEND_CHARTS_PAIR_SCOPED.md. Regression:make verify-issue-666.Related to #666.
Test plan
make verify-issue-666(Vitest + chrome nesting + indexerapi_traders/security)/charts: nocharts-overview-*tiles; pair 24h Stats immediately below Find pair/charts/:unknownTerra1shows unknown-pair notice; no stats/leaderboard fetch for that string/protocolstill shows global USD census fromGET /overviewe2e/price-chart-smoke.spec.tsCharts layout when LocalTerra + indexer are up (PLAYWRIGHT_SKIP_CHAINunset)Closes #666
mentioned in issue #666
mentioned in issue #673
Pull request closed