mirror of
https://github.com/luxfi/graph.git
synced 2026-09-24 00:26:07 +00:00
handleInitializeV4 now sets the DEX Market symbol to the human BASE/QUOTE pair (from the two currencies' ERC20 symbols) and marks assetsBound=true when both resolve to a clean symbol. This is the exact shape the public exchange-api real-asset gate (dexMarkets.ts isStructurallyReal) requires: without it every native 0x9999 market was stripped (poolId-hex symbol failed the clean-pair check) and the markets surface was empty despite real on-chain DEXFills. A token with no identifiable symbol yields no pair -> the market stays unbound and hidden. One place computes a market's display identity, read by every downstream surface (explorer /dex, exchange-api gate, FE). New TDD: BindsCleanPairSymbol + UnnamedTokenStaysUnbound.