fix: CG/CMC listing TVL stamp and field truth (#685) #1190

Merged
PlasticDigits merged 2 commits from fix/685-cg-cmc-listing-fields into main 2026-08-27 07:41:01 +00:00
PlasticDigits commented 2026-08-27 07:08:25 +00:00 (Migrated from gitlab.com)

Summary

  • /cg/tickers liquidity_in_usd is the pair_liquidity_usd stamp (unpriced → "0"), not 24h volume. JSON name unchanged.
  • Bid/ask is reserve mid ± fee_bps (BigDecimal) or last_price both sides. No f64 * 0.999. List path stays SQL stamps (60s cache).
  • /cmc/ticker isFrozen follows code_id_frozen; base_id/quote_id are numeric cmc_id (else 0) with additive cl8y_*_address.
  • Gems / ALPHA / USTRIX / SpaceUSD omitted from /cg and /cmc lists (shared helper with /gt). Duplicate ticker_id is skipped (orderbook/trades 404).
  • Docs + invariants L685-1–L685-8 and make verify-issue-685. #224 stays closed.

Closes #685

Test plan

  • make setup-indexer-postgres then make verify-issue-685
  • GET /cg/tickers: priced idle pool has stamp TVL; unpriced is "0"; not equal to 24h volume
  • Bid ≤ last ≤ ask; no 0.999 toy spread on /cg/tickers and /cmc/summary
  • Frozen pair: /cmc/ticker isFrozen is "1"; ids are numbers
  • Gem pair omitted from /cg/pairs, tickers, /cmc/summary, /cmc/ticker, /cmc/assets
  • Duplicate SYMBOL_SYMBOL → /cg/historical_trades 404
  • Coolify indexer redeploy (no wasm / dApp)
## Summary - `/cg/tickers` `liquidity_in_usd` is the `pair_liquidity_usd` stamp (unpriced → `"0"`), not 24h volume. JSON name unchanged. - Bid/ask is reserve mid ± `fee_bps` (BigDecimal) or `last_price` both sides. No `f64 * 0.999`. List path stays SQL stamps (60s cache). - `/cmc/ticker` `isFrozen` follows `code_id_frozen`; `base_id`/`quote_id` are numeric `cmc_id` (else `0`) with additive `cl8y_*_address`. - Gems / ALPHA / USTRIX / SpaceUSD omitted from `/cg` and `/cmc` lists (shared helper with `/gt`). Duplicate `ticker_id` is skipped (orderbook/trades 404). - Docs + invariants **L685-1–L685-8** and `make verify-issue-685`. `#224` stays closed. Closes #685 ## Test plan - [ ] `make setup-indexer-postgres` then `make verify-issue-685` - [ ] `GET /cg/tickers`: priced idle pool has stamp TVL; unpriced is `"0"`; not equal to 24h volume - [ ] Bid ≤ last ≤ ask; no `0.999` toy spread on `/cg/tickers` and `/cmc/summary` - [ ] Frozen pair: `/cmc/ticker` `isFrozen` is `"1"`; ids are numbers - [ ] Gem pair omitted from `/cg/pairs`, tickers, `/cmc/summary`, `/cmc/ticker`, `/cmc/assets` - [ ] Duplicate `SYMBOL_SYMBOL` → `/cg/historical_trades` 404 - [ ] Coolify indexer redeploy (no wasm / dApp)
PlasticDigits commented 2026-08-27 07:40:57 +00:00 (Migrated from gitlab.com)

added 8 commits

  • 4fd3d2fd...d9aa9432 - 7 commits from branch main
  • cf1c0a63 - Merge origin/main into fix/685-cg-cmc-listing-fields.

Compare with previous version

added 8 commits <ul><li>4fd3d2fd...d9aa9432 - 7 commits from branch <code>main</code></li><li>cf1c0a63 - Merge origin/main into fix/685-cg-cmc-listing-fields.</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/472/diffs?diff_id=1987220152&start_sha=4fd3d2fd191b8d8088d0d42513d2a6612709f106)
PlasticDigits commented 2026-08-27 07:41:02 +00:00 (Migrated from gitlab.com)

mentioned in commit 906b6e7f0d

mentioned in commit 906b6e7f0d2f8819342e4d3a16008dc493d4ec1b
PlasticDigits (Migrated from gitlab.com) merged commit 906b6e7f0d into main 2026-08-27 07:41:02 +00:00
PlasticDigits commented 2026-08-27 07:43:03 +00:00 (Migrated from gitlab.com)

mentioned in issue #688

mentioned in issue #688
PlasticDigits commented 2026-08-27 07:43:23 +00:00 (Migrated from gitlab.com)

mentioned in issue #685

mentioned in issue #685
PlasticDigits commented 2026-08-27 07:44:44 +00:00 (Migrated from gitlab.com)

mentioned in commit 79a4deb587

mentioned in commit 79a4deb587ac9e32ce30d747ada0bdfcd44dbbda
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!1190
No description provided.