How Goliath Markets calculates and reports liquidity figures
Liquidity USD represents the total value locked in a trading pair's reserves, expressed in US dollars. For each execution market (AMM liquidity pool), we calculate:
liquidity_usd = reserve0_usd + reserve1_usd
Where reserve0_usd and reserve1_usd are the USD-denominated
values of the token reserves held in the pair contract. Reserve balances are read
directly from on-chain Sync events emitted by the pair contract, ensuring
real-time accuracy.
USD pricing relies on identifying a canonical quote asset with a known dollar value. The canonical USDC representation on Goliath Network is:
0xC8410270bb53f6c99A2EFe6eD3686a8630Efe22B
This is the single authoritative USDC contract. Only representations marked as
is_canonical_listing_representation = true are used as pricing anchors.
Some tokens have multiple on-chain representations (e.g., a bridge-wrapped version
and a natively minted version). Representations typed as legacy_erc20
are excluded from default market listings and API responses. Markets involving legacy
representations receive a legacy classification and do not appear in
standard ticker or summary endpoints.
This ensures that CoinGecko, CoinMarketCap, and other aggregators only receive data for canonical trading pairs, preventing duplicate volume reporting.
Asset prices in USD are determined through the following priority order:
low confidence and include an expiration timestamp.
none confidence. Markets involving unpriced assets
will show — for USD-denominated metrics.
Liquidity figures are recalculated by the calculator service on every new block
(approximately every 2 seconds on Goliath Network). The 24-hour rolling statistics
are maintained in the market_stats_24h_current table and updated
continuously as new trades are indexed.