fix(dex): /dex tab on live C-Chain 0x9999 subgraph (kill pi-million mock)#8
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.