feat: /pool table v2 LP USD column (#655) #1173

Merged
PlasticDigits merged 2 commits from feat/655-pool-lp-usd into main 2026-08-26 09:01:21 +00:00
PlasticDigits commented 2026-08-26 07:27:28 +00:00 (Migrated from gitlab.com)

Summary

  • Add a v2 LP USD column on /pool (after Vol) from indexer liquidity_usd, using the same protocol_pair_tvl catalog as Protocol Total liquidity (#569).
  • Materialize pair_liquidity_usd on protocol TVL refresh and LEFT JOIN it on GET /api/v1/pairs (sort liquidity_usd, NULLS LAST). Unpriced pairs have no rollup row (omit/—, never $0).
  • Docs/skills/invariants P655-1–P655-8 plus make verify-issue-655.

Closes #655

Test plan

  • make verify-issue-655 (docs, source guards, indexer lib + integration, Vitest, Playwright P1–P7 with 5 workers)
  • make verify-issue-547 / make verify-issue-569 (nested e2e skipped; both green on this branch)
  • After indexer deploy: /pool cells show $ or —; header click sort=liquidity_usd&order=desc against the new API (live :3001 on this VM is still pre-#655 and returns 400 for that sort)
  • Coolify/old indexer: missing field renders —, no console throw
  • Do not raise pair-list limit 100→500 (out of scope)
## Summary - Add a **v2 LP USD** column on `/pool` (after Vol) from indexer `liquidity_usd`, using the same `protocol_pair_tvl` catalog as Protocol Total liquidity (#569). - Materialize `pair_liquidity_usd` on protocol TVL refresh and LEFT JOIN it on `GET /api/v1/pairs` (sort `liquidity_usd`, NULLS LAST). Unpriced pairs have no rollup row (omit/`—`, never `$0`). - Docs/skills/invariants **P655-1–P655-8** plus `make verify-issue-655`. Closes #655 ## Test plan - [x] `make verify-issue-655` (docs, source guards, indexer lib + integration, Vitest, Playwright P1–P7 with 5 workers) - [x] `make verify-issue-547` / `make verify-issue-569` (nested e2e skipped; both green on this branch) - [ ] After indexer deploy: `/pool` cells show `$` or `—`; header click `sort=liquidity_usd&order=desc` against the new API (live `:3001` on this VM is still pre-#655 and returns 400 for that sort) - [ ] Coolify/old indexer: missing field renders `—`, no console throw - [ ] Do not raise pair-list `limit` 100→500 (out of scope)
PlasticDigits commented 2026-08-26 09:00:57 +00:00 (Migrated from gitlab.com)

mentioned in commit d52bdf039a

mentioned in commit d52bdf039a3e57a4db6eb5a9aa0b0095b73c9c22
PlasticDigits commented 2026-08-26 09:00:58 +00:00 (Migrated from gitlab.com)

added 46 commits

  • 385141d3...676df7e5 - 45 commits from branch main
  • d52bdf03 - Merge origin/main into branch for !1173

Compare with previous version

added 46 commits <ul><li>385141d3...676df7e5 - 45 commits from branch <code>main</code></li><li>d52bdf03 - Merge origin/main into branch for !1173</li></ul> [Compare with previous version](/PlasticDigits/cl8y-dex-terraclassic/-/merge_requests/455/diffs?diff_id=1984553568&start_sha=385141d307b07042f1d07d9a677b2f088079cf01)
PlasticDigits (Migrated from gitlab.com) merged commit b64331ffec into main 2026-08-26 09:01:21 +00:00
PlasticDigits commented 2026-08-26 09:01:22 +00:00 (Migrated from gitlab.com)

mentioned in commit b64331ffec

mentioned in commit b64331ffeca9cf1272d5a1622a364e54ce0cb386
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:11 +00:00 (Migrated from gitlab.com)

mentioned in issue #655

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