fix: show trader leaderboard volume as catalog USD (#553) #1081

Merged
PlasticDigits merged 2 commits from feat/553-trader-leaderboard-usd into main 2026-08-18 03:02:44 +00:00
PlasticDigits commented 2026-08-18 02:06:41 +00:00 (Migrated from gitlab.com)

Closes #553

Summary

  • Charts Trader leaderboard Volume and trader/portfolio Total Volume now display P522-Q USD ($ + compact human) from traders.total_volume_usd (SUM(swap_events.volume_usd) / volume_usd_for_swap).
  • JSON keeps raw total_volume for integrators. Unpriced activity with trades is JSON null / UI —, not $0 or 10,000,000T.
  • Charts Volume tab sorts total_volume_usd DESC NULLS LAST so the displayed column matches the rank. API default sort stays raw total_volume.

Issue criteria

  • RTL: leaderboard Volume with USTR-scale raw total_volume must not render T; USD path covered
  • RTL: TraderSummaryStats Total Volume same
  • Indexer: leaderboard/profile expose USD (or documented null) from catalog volume_usd
  • Manual: https://dex.cl8y.com/charts Volume column vs overview 24h USD (lifetime vs 24h may differ; neither should be 10,000,000T) — needs production indexer migrate + ingest after merge

Test plan

  • make verify-issue-553 (docs, frontend RTL, indexer trader_volume_usd + api_traders)
  • After deploy: migrate indexer, confirm /charts Volume (USD) vs 24h overview (lifetime vs 24h)
Closes #553 ## Summary - Charts **Trader leaderboard** Volume and trader/portfolio **Total Volume** now display P522-Q **USD** (`$` + compact human) from `traders.total_volume_usd` (`SUM(swap_events.volume_usd)` / `volume_usd_for_swap`). - JSON keeps raw `total_volume` for integrators. Unpriced activity with trades is JSON `null` / UI `—`, not `$0` or `10,000,000T`. - Charts Volume tab sorts `total_volume_usd DESC NULLS LAST` so the displayed column matches the rank. API default sort stays raw `total_volume`. ## Issue criteria - [x] RTL: leaderboard Volume with USTR-scale raw `total_volume` must not render `T`; USD path covered - [x] RTL: `TraderSummaryStats` Total Volume same - [x] Indexer: leaderboard/profile expose USD (or documented null) from catalog `volume_usd` - [ ] Manual: `https://dex.cl8y.com/charts` Volume column vs overview 24h USD (lifetime vs 24h may differ; neither should be `10,000,000T`) — needs production indexer migrate + ingest after merge ## Test plan - [x] `make verify-issue-553` (docs, frontend RTL, indexer `trader_volume_usd` + `api_traders`) - [ ] After deploy: migrate indexer, confirm `/charts` Volume (USD) vs 24h overview (lifetime vs 24h)
PlasticDigits commented 2026-08-18 02:08:27 +00:00 (Migrated from gitlab.com)

mentioned in merge request !1082

mentioned in merge request !1082
PlasticDigits commented 2026-08-18 03:02:30 +00:00 (Migrated from gitlab.com)

added 3 commits

  • 7f95f052...879202a0 - 2 commits from branch main
  • b8ba6183 - Merge branch 'main' into feat/553-trader-leaderboard-usd

Compare with previous version

added 3 commits <ul><li>7f95f052...879202a0 - 2 commits from branch <code>main</code></li><li>b8ba6183 - Merge branch &#39;main&#39; into feat/553-trader-leaderboard-usd</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/363/diffs?diff_id=1967156890&start_sha=7f95f052e69451a8bc54d428cdd31abfca982f55)
PlasticDigits commented 2026-08-18 03:02:44 +00:00 (Migrated from gitlab.com)

mentioned in commit 4ddad9a6e3

mentioned in commit 4ddad9a6e373cc5495f687382c5223378d2f6107
PlasticDigits (Migrated from gitlab.com) merged commit 4ddad9a6e3 into main 2026-08-18 03:02:44 +00:00
PlasticDigits commented 2026-08-18 03:06:05 +00:00 (Migrated from gitlab.com)

mentioned in commit 0993d1926c

mentioned in commit 0993d1926c581eb6717276f194796bb581a8b6c1
PlasticDigits commented 2026-08-18 03:11:23 +00:00 (Migrated from gitlab.com)

mentioned in issue #553

mentioned in issue #553
PlasticDigits commented 2026-08-18 03:11:33 +00:00 (Migrated from gitlab.com)

mentioned in issue #551

mentioned in issue #551
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic!1081
No description provided.