Pair selector: list economic pairs first and group by shared token (cLUNC/UST1 buried below test gems) #534

Closed
opened 2026-08-16 12:05:08 +00:00 by leonardocolucci · 35 comments
leonardocolucci commented 2026-08-16 12:05:08 +00:00 (Migrated from gitlab.com)

Summary

The pair dropdown (Swap / Limits / Trade / Charts) lists pairs in factory-creation order, so the three economic pairs are split up: UST1/USTR and UST1/cUSTC at the top, then eight soft-launch gem pairs, then cLUNC/UST1 at the very bottom. A user looking for the UST1 markets has to scroll past EMBER/CORAL, EMBER/JADE, … to find the third one, and nothing signals that the gems are test tokens.

Suggested ordering (all pair dropdowns)

  1. Economic pairs first, gems last. "Economic" = both sides are real tokens (cLUNC, cUSTC, UST1, USTR, CL8Y, …); gems (EMBER, CORAL, JADE, ONYX, RUBY, TOPAZ, QUARTZ, PEARL) are faucet-mintable and belong at the end — or under a collapsed "Test pairs" divider.
  2. Within economic pairs, group by shared token so a hub token's markets sit together — e.g. all UST1 pairs adjacent (UST1/cUSTC, UST1/USTR, cLUNC/UST1). Sorting by the highest-volume token, or simply alphabetically by the quote/hub asset, achieves this.
  3. Optionally, sort within a group by 24h volume so the liquid market is on top.

Also spotted

The UST1/USTR row shows "VOL 19,297,048T" — USTR is 18-decimal and the volume figure appears to be scaled as 6-decimal (12 orders of magnitude off). Same class of issue as #518 / #529 (decimals gap); likely a one-line fix in the indexer/formatter.

Why it matters

The pair list is most people's first click; putting real markets first and clustering hub tokens makes the economic launch legible at a glance instead of hidden behind test pairs.

## Summary The pair dropdown (Swap / Limits / Trade / Charts) lists pairs in factory-creation order, so the three economic pairs are split up: UST1/USTR and UST1/cUSTC at the top, then eight soft-launch gem pairs, then **cLUNC/UST1 at the very bottom**. A user looking for the UST1 markets has to scroll past EMBER/CORAL, EMBER/JADE, … to find the third one, and nothing signals that the gems are test tokens. ## Suggested ordering (all pair dropdowns) 1. **Economic pairs first, gems last.** "Economic" = both sides are real tokens (cLUNC, cUSTC, UST1, USTR, CL8Y, …); gems (EMBER, CORAL, JADE, ONYX, RUBY, TOPAZ, QUARTZ, PEARL) are faucet-mintable and belong at the end — or under a collapsed "Test pairs" divider. 2. **Within economic pairs, group by shared token** so a hub token's markets sit together — e.g. all UST1 pairs adjacent (UST1/cUSTC, UST1/USTR, cLUNC/UST1). Sorting by the highest-volume token, or simply alphabetically by the quote/hub asset, achieves this. 3. Optionally, sort within a group by 24h volume so the liquid market is on top. ## Also spotted The UST1/USTR row shows **"VOL 19,297,048T"** — USTR is 18-decimal and the volume figure appears to be scaled as 6-decimal (12 orders of magnitude off). Same class of issue as #518 / #529 (decimals gap); likely a one-line fix in the indexer/formatter. ## Why it matters The pair list is most people's first click; putting real markets first and clustering hub tokens makes the economic launch legible at a glance instead of hidden behind test pairs.
PlasticDigits commented 2026-08-17 01:09:34 +00:00 (Migrated from gitlab.com)

mentioned in merge request !1067

mentioned in merge request !1067
PlasticDigits commented 2026-08-17 03:37:49 +00:00 (Migrated from gitlab.com)

mentioned in commit 61f204b7a2

mentioned in commit 61f204b7a27875f49fb866a3ec0b7d0d6efd1029
PlasticDigits (Migrated from gitlab.com) closed this issue 2026-08-17 03:37:50 +00:00
PlasticDigits commented 2026-08-17 03:39:50 +00:00 (Migrated from gitlab.com)

mentioned in commit a5639d8ba9

mentioned in commit a5639d8ba9795acc2e4a8f6f143685924fd2528d
PlasticDigits commented 2026-08-17 03:42:13 +00:00 (Migrated from gitlab.com)

!1067 merged to main (61f204b7). make verify-issue-534 8/8 after merge (108 Vitest).

Met: economic-first + UST1 hub grouping + formatQuoteVolume24h on pair pickers and pool cards; Trade/Limits Test pairs divider; typed search stays haystack order.

Left over (not in this close):

  • Charts 24h stats panel still uses formatNum(stats.volume_quote) — USTR pairs can still show a …T compact there
  • Charts pair menu is re-ranked but has no Test pairs divider
  • TradePage auto-pick test does not assert catalog-first when factory [0] is a gem
!1067 merged to `main` (`61f204b7`). `make verify-issue-534` 8/8 after merge (108 Vitest). Met: economic-first + UST1 hub grouping + `formatQuoteVolume24h` on pair pickers and pool cards; Trade/Limits **Test pairs** divider; typed search stays haystack order. Left over (not in this close): - Charts 24h stats panel still uses `formatNum(stats.volume_quote)` — USTR pairs can still show a `…T` compact there - Charts pair menu is re-ranked but has no **Test pairs** divider - `TradePage` auto-pick test does not assert catalog-first when factory `[0]` is a gem
PlasticDigits commented 2026-08-17 03:42:26 +00:00 (Migrated from gitlab.com)

mentioned in issue #540

mentioned in issue #540
PlasticDigits commented 2026-08-17 03:42:27 +00:00 (Migrated from gitlab.com)

marked as related to #540

marked as related to #540
PlasticDigits commented 2026-08-17 03:42:37 +00:00 (Migrated from gitlab.com)

Charts leftover tracked as #540.

Charts leftover tracked as #540.
PlasticDigits commented 2026-08-17 03:45:49 +00:00 (Migrated from gitlab.com)

mentioned in issue #542

mentioned in issue #542
PlasticDigits commented 2026-08-17 03:52:29 +00:00 (Migrated from gitlab.com)

mentioned in issue #544

mentioned in issue #544
PlasticDigits commented 2026-08-17 03:52:29 +00:00 (Migrated from gitlab.com)

marked as related to #544

marked as related to #544
PlasticDigits commented 2026-08-17 10:26:07 +00:00 (Migrated from gitlab.com)

mentioned in issue #547

mentioned in issue #547
PlasticDigits commented 2026-08-17 10:26:09 +00:00 (Migrated from gitlab.com)

marked as related to #547

marked as related to #547
PlasticDigits commented 2026-08-17 10:29:10 +00:00 (Migrated from gitlab.com)

mentioned in issue #548

mentioned in issue #548
PlasticDigits commented 2026-08-17 14:58:02 +00:00 (Migrated from gitlab.com)

mentioned in issue #553

mentioned in issue #553
leonardocolucci commented 2026-08-17 21:14:19 +00:00 (Migrated from gitlab.com)

Thanks for the quick fix (!1067) — economic pairs first with UST1 hub grouping is a big usability win for anyone landing on the DEX now. Noted the Charts leftover in #540.

Thanks for the quick fix (!1067) — economic pairs first with UST1 hub grouping is a big usability win for anyone landing on the DEX now. Noted the Charts leftover in #540.
PlasticDigits commented 2026-08-18 00:29:03 +00:00 (Migrated from gitlab.com)

mentioned in issue #557

mentioned in issue #557
PlasticDigits commented 2026-08-18 12:08:55 +00:00 (Migrated from gitlab.com)

marked as related to #562

marked as related to #562
PlasticDigits commented 2026-08-18 12:08:56 +00:00 (Migrated from gitlab.com)

mentioned in issue #562

mentioned in issue #562
PlasticDigits commented 2026-08-18 12:12:14 +00:00 (Migrated from gitlab.com)

mentioned in issue #564

mentioned in issue #564
PlasticDigits commented 2026-08-18 12:13:07 +00:00 (Migrated from gitlab.com)

mentioned in issue #565

mentioned in issue #565
PlasticDigits commented 2026-08-19 01:02:29 +00:00 (Migrated from gitlab.com)

mentioned in merge request !1088

mentioned in merge request !1088
PlasticDigits commented 2026-08-24 03:15:46 +00:00 (Migrated from gitlab.com)

mentioned in issue #619

mentioned in issue #619
PlasticDigits commented 2026-08-25 01:55:13 +00:00 (Migrated from gitlab.com)

mentioned in issue #630

mentioned in issue #630
PlasticDigits commented 2026-08-25 01:57:09 +00:00 (Migrated from gitlab.com)

mentioned in issue #632

mentioned in issue #632
PlasticDigits commented 2026-08-26 03:06:33 +00:00 (Migrated from gitlab.com)

mentioned in issue #655

mentioned in issue #655
PlasticDigits commented 2026-08-26 03:06:35 +00:00 (Migrated from gitlab.com)

marked as related to #655

marked as related to #655
PlasticDigits commented 2026-08-26 04:13:29 +00:00 (Migrated from gitlab.com)

mentioned in issue #662

mentioned in issue #662
leonardocolucci commented 2026-08-26 21:37:47 +00:00 (Migrated from gitlab.com)

mentioned in issue #674

mentioned in issue #674
PlasticDigits commented 2026-08-27 00:20:53 +00:00 (Migrated from gitlab.com)

mentioned in issue #680

mentioned in issue #680
PlasticDigits commented 2026-08-27 00:32:26 +00:00 (Migrated from gitlab.com)

mentioned in commit 19344b8246

mentioned in commit 19344b824687d3e71264ed322075bfeecd11f320
PlasticDigits commented 2026-08-27 01:00:19 +00:00 (Migrated from gitlab.com)

mentioned in issue #682

mentioned in issue #682
PlasticDigits commented 2026-08-27 01:00:29 +00:00 (Migrated from gitlab.com)

mentioned in issue #683

mentioned in issue #683
PlasticDigits commented 2026-08-28 05:22:08 +00:00 (Migrated from gitlab.com)

mentioned in issue #692

mentioned in issue #692
PlasticDigits commented 2026-08-28 05:22:10 +00:00 (Migrated from gitlab.com)

marked as related to #692

marked as related to #692
PlasticDigits commented 2026-08-29 04:22:36 +00:00 (Migrated from gitlab.com)

mentioned in merge request !1195

mentioned in merge request !1195
Sign in to join this conversation.
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#534
No description provided.