Violation
Location
core/src/exchanges/baozi/fetcher.ts:161
Why It Matters
Any failure during Solana account deserialization (parseRaceMarket, discriminator check, etc.) is silently swallowed and returns null. A breaking change in the Baozi on-chain data layout, an RPC error, or a buffer parsing bug would be completely invisible. Callers see null and cannot distinguish a missing market from a broken decoder.
Suggested Fix
} catch (err) {
logger.warn('BaoziFetcher: fetchRawSingleMarket failed', { pubkey: pubkey?.toBase58(), error: String(err) });
return null;
}
Found by automated code hygiene audit
Violation
Location
core/src/exchanges/baozi/fetcher.ts:161Why It Matters
Any failure during Solana account deserialization (
parseRaceMarket, discriminator check, etc.) is silently swallowed and returnsnull. A breaking change in the Baozi on-chain data layout, an RPC error, or a buffer parsing bug would be completely invisible. Callers seenulland cannot distinguish a missing market from a broken decoder.Suggested Fix
Found by automated code hygiene audit