fix(frontend): show LUNC/USTC instead of uluna/uusd in pickers #1141

Closed
PlasticDigits wants to merge 0 commits from 630-fix-show-lunc-ustc-not-uluna-uusd-in-token-pickers into main
PlasticDigits commented 2026-08-25 06:01:21 +00:00 (Migrated from gitlab.com)

Summary

  • Retail token pickers (useTokenDisplayInfo / TokenSearchSelect / TokenDisplay / TokenIdentity) now resolve LUNC / USTC from the static registry before indexer symbol, so a catalog that still stores uluna / uusd (or a spoofed ticker) cannot leak denoms next to cLUNC / cUSTC.
  • Shared helper registryProductSymbol is used by both the hook and getTokenDisplaySymbol so precedence cannot drift. Token ids, data-testid, balances, and execute stay uluna / uusd.
  • Indexer first-insert writes retail labels for known bank denoms only; a one-time SQL repair updates existing symbol=uluna / uusd rows. Unknown denoms stay denom/denom. Wrap CW20 rows are untouched.

Closes #630

Test plan

  • make verify-issue-630 (Vitest display/search/hook/picker + #541 copy + indexer asset_resolver lib + docs/skills)
  • Re-run make verify-issue-630 (second pass)
  • LocalTerra Swap (disconnected): You Pay trigger cLUNC, You Receive LUNC; listbox option token-option-uusd visible text USTC; selecting it sets the trigger to USTC
  • Reviewer: Swap You Pay / You Receive on phone + desktop — no uluna / uusd as visible ticker text
  • Reviewer: Pool one-sided + Pay invoice + Mint labels match
  • Reviewer: search LUNC / uluna / USTC / uusd still finds the native row
  • Reviewer: Create Pair still excludes natives (#542)
  • After indexer deploy/migrate: GET /api/v1/tokens reports symbol=LUNC / USTC for those denoms

Closes #630

## Summary - Retail token pickers (`useTokenDisplayInfo` / `TokenSearchSelect` / `TokenDisplay` / `TokenIdentity`) now resolve **LUNC** / **USTC** from the static registry **before** indexer `symbol`, so a catalog that still stores `uluna` / `uusd` (or a spoofed ticker) cannot leak denoms next to **cLUNC** / **cUSTC**. - Shared helper `registryProductSymbol` is used by both the hook and `getTokenDisplaySymbol` so precedence cannot drift. Token **ids**, `data-testid`, balances, and execute stay `uluna` / `uusd`. - Indexer first-insert writes retail labels for known bank denoms only; a one-time SQL repair updates existing `symbol=uluna` / `uusd` rows. Unknown denoms stay denom/denom. Wrap CW20 rows are untouched. Closes #630 ## Test plan - [x] `make verify-issue-630` (Vitest display/search/hook/picker + #541 copy + indexer `asset_resolver` lib + docs/skills) - [x] Re-run `make verify-issue-630` (second pass) - [x] LocalTerra Swap (disconnected): You Pay trigger **cLUNC**, You Receive **LUNC**; listbox option `token-option-uusd` visible text **USTC**; selecting it sets the trigger to **USTC** - [ ] Reviewer: Swap You Pay / You Receive on phone + desktop — no `uluna` / `uusd` as **visible** ticker text - [ ] Reviewer: Pool one-sided + Pay invoice + Mint labels match - [ ] Reviewer: search `LUNC` / `uluna` / `USTC` / `uusd` still finds the native row - [ ] Reviewer: Create Pair still excludes natives (#542) - [ ] After indexer deploy/migrate: `GET /api/v1/tokens` reports `symbol=LUNC` / `USTC` for those denoms Closes #630
PlasticDigits commented 2026-08-25 06:03:36 +00:00 (Migrated from gitlab.com)

marked this merge request as ready

marked this merge request as **ready**
PlasticDigits (Migrated from gitlab.com) closed this pull request 2026-08-25 06:04:12 +00:00

Pull request closed

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!1141
No description provided.