feat: show factory v2 LP USD on Trade and Charts identity (#664) #1162

Merged
PlasticDigits merged 2 commits from feat/664-trade-identity-lp-usd into main 2026-08-26 08:15:55 +00:00
PlasticDigits commented 2026-08-26 07:03:53 +00:00 (Migrated from gitlab.com)

Summary

  • Stamp per-pair factory v2 AMM TVL (pair_liquidity_usd) on protocol TVL refresh using the existing #569 protocol_pair_tvl catalog (not a live GET-path sum).
  • GET /api/v1/pairs/{addr} returns optional liquidity_usd from that stamp; unknown addr stays 404; unpriced omits the field (not $0).
  • /trade/{pair} and /charts/{pair} identity rows show a compact v2 LP $… chip via shared PairTokenLinks. /pool table identity does not take the prop (#655 owns that column).

Closes #664

Test plan

  • make verify-issue-664 (indexer stamp/GET, Vitest identity chip, Playwright smoke 5 workers)
  • Indexer: stamped GET, unstamped omit, 404, volume_quote_24h stays None on single GET
  • Frontend: priced chip, hostile/Infinity omit, invert unchanged, invalid pair hidden, Charts Vol USD still volume_usd
  • LocalTerra: /trade/{pair} and /charts/{pair} show v2 LP $… or quiet omit; pair switch; no LCD getPool storm
  • After #655 lands: Trade/Charts USD equals the /pool cell for the same pair
  • make verify-issue-541 still green on CI
## Summary - Stamp per-pair factory v2 AMM TVL (`pair_liquidity_usd`) on protocol TVL refresh using the existing `#569` `protocol_pair_tvl` catalog (not a live GET-path sum). - `GET /api/v1/pairs/{addr}` returns optional `liquidity_usd` from that stamp; unknown addr stays 404; unpriced omits the field (not `$0`). - `/trade/{pair}` and `/charts/{pair}` identity rows show a compact **v2 LP** `$…` chip via shared `PairTokenLinks`. `/pool` table identity does **not** take the prop (`#655` owns that column). Closes #664 ## Test plan - [x] `make verify-issue-664` (indexer stamp/GET, Vitest identity chip, Playwright smoke 5 workers) - [x] Indexer: stamped GET, unstamped omit, 404, `volume_quote_24h` stays `None` on single GET - [x] Frontend: priced chip, hostile/Infinity omit, invert unchanged, invalid pair hidden, Charts Vol USD still `volume_usd` - [ ] LocalTerra: `/trade/{pair}` and `/charts/{pair}` show **v2 LP** `$…` or quiet omit; pair switch; no LCD `getPool` storm - [ ] After `#655` lands: Trade/Charts USD equals the `/pool` cell for the same pair - [ ] `make verify-issue-541` still green on CI
PlasticDigits commented 2026-08-26 08:15:50 +00:00 (Migrated from gitlab.com)

added 21 commits

  • cbb45740...fe0ff4bf - 20 commits from branch main
  • 21105520 - Merge origin/main into branch for !1162

Compare with previous version

added 21 commits <ul><li>cbb45740...fe0ff4bf - 20 commits from branch <code>main</code></li><li>21105520 - Merge origin/main into branch for !1162</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/444/diffs?diff_id=1984438572&start_sha=cbb45740f08819ea993dd6d81b8b6e4065e02932)
PlasticDigits commented 2026-08-26 08:15:50 +00:00 (Migrated from gitlab.com)

mentioned in commit 211055203d

mentioned in commit 211055203dea0adedbaeeca0ae8fef542f8e9cec
PlasticDigits commented 2026-08-26 08:15:56 +00:00 (Migrated from gitlab.com)

mentioned in commit 72071a1016

mentioned in commit 72071a1016fe557a3da70b086cd8fd008dc0318c
PlasticDigits (Migrated from gitlab.com) merged commit 72071a1016 into main 2026-08-26 08:15:56 +00:00
PlasticDigits commented 2026-08-26 09:30:57 +00:00 (Migrated from gitlab.com)

mentioned in issue #664

mentioned in issue #664
PlasticDigits commented 2026-08-26 09:31:37 +00:00 (Migrated from gitlab.com)

mentioned in issue #673

mentioned in issue #673
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!1162
No description provided.