Skip to content

fix(dex): /dex tab on live C-Chain 0x9999 subgraph (kill pi-million mock)#8

Merged
zeekay merged 4 commits into
mainfrom
fix/dex-real-subgraph
Jun 30, 2026
Merged

fix(dex): /dex tab on live C-Chain 0x9999 subgraph (kill pi-million mock)#8
zeekay merged 4 commits into
mainfrom
fix/dex-real-subgraph

Conversation

@zeekay

@zeekay zeekay commented Jun 30, 2026

Copy link
Copy Markdown
Member

Replaces the hardcoded demo DEX dataset (placeholder pi-million 24h volume) with live markets+fills from the per-network C-Chain 0x9999 dex subgraph (/v1/graph/cchain/dex/graphql). Token pairs resolve via the token metadata endpoint; empty nets render 'No active markets' — never mock. Also guards tx.transaction_types so coinbase/precompile txs don't crash the block Transactions tab.

zeekay and others added 4 commits June 28, 2026 23:05
Replace the hardcoded demo DEX dataset (incl. the placeholder pi-million 24h volume) with live markets + fills from the C-Chain 0x9999 subgraph at the per-network /v1/graph/cchain/dex/graphql endpoint, selected via config.apis.general like every other resource. Token pairs resolve through the existing token metadata endpoint, falling back to a short address. Empty/unavailable nets render 'No active markets' — never mock.

Guard tx.transaction_types in TxsListItem so coinbase/precompile txs (absent transaction_types in the API payload) no longer crash the block Transactions tab; drop an unused destructured prop. Allow CLOB in cspell.
…ool; lux-build-linux-amd64 was removed, [self-hosted,linux,amd64] never matched)
Request the indexer's bound `symbol` in the markets query and use it as the
authoritative pair label when it parses as BASE/QUOTE, falling back to live
token-metadata resolution then short addresses. One pair, one source of truth.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts:
#	lib/api/dchain/useDexData.ts
#	ui/dex/DexPage.tsx
@zeekay zeekay merged commit 218e1b0 into main Jun 30, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant