feat(protocol): rank top-5 factory pairs by trailing 30d USD (#1263) #1298
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!1298
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue/1263-protocol-top-pairs"
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
/protocolTop pairs (30d) — at most five factory pairs ranked by trailing 30-day priced USD volume, with current v2 AMM TVL and server-side vol/LP (N×or —).pair_volume_30din the existing ~5 min volume aggregator (same NULL / idle-0 / ≥10^20 rules as 24h pair volume).GET /api/v1/protocol/top-pairsJOINs that stamp +pair_liquidity_usd; GET never scansswap_events/pair_reserves.COLUMBUS5_GEM_ADDRESSES. Hard cap 5;limit/windowallowlisted;from/to/sort/ticker→ 400; 60s cache ignores junk keys. Does not addsort=volume_usd_30dtoGET /pairsor changeGET /overview..githooks/pre-pushso a new remote branch only checks unpublished commits (not all ofmainhistory).Closes #1263
Test plan
VERIFY_ISSUE_1263_SKIP_RELATED=1 make verify-issue-1263(docs, source guards, indexer lib +indexer_protocol_top_pairs, ProtocolPage RTL)dex_indexer_test_1263(8/8 + 2 unit)make verify-issue-653VERIFY_ISSUE_655_SKIP_E2E=1 VERIFY_ISSUE_655_SKIP_RELATED=1 make verify-issue-655VERIFY_ISSUE_692_SKIP_E2E=1 VERIFY_ISSUE_692_SKIP_RELATED=1 make verify-issue-692/protocol1280 + 390: ≤5 economic rows, Charts link, gems absentcurlGET /api/v1/protocol/top-pairs(≤5 items) and?limit=6→ 400make verify-issue-550/569/562(562 currently fails on this main snapshot via unrelated SwapPage #679~192vs~39.66LUNC fee; gem-specific 562 checks passed)Acceptance (issue #1263)
make verify-issue-1263(related 550/569/562 full green not re-run here; 653/655/692 skip-e2e green)Out of scope (as specified): BTC/ETH/stocks, farm/APR, CMM txs,
/pool30d column, historical TVL average, UTC chart, CosmWasm, Coolify.drain skip: no occupying job for rebase/fix-pr/CI-wait; remaining continue