Quainance Liquidity
Tracks Quainance pools, swaps, reserves, prices, liquidity, and two-percent depth on Quai.
Point-in-time operational summary
This worker exposes a current loop-state record in this view. No multi-run history is requested or inferred.
Input to product surface
Uses a persistent Quai WebSocket JSON-RPC client through a fetch bridge, with a guarded HTTP fallback when configured.
Validates chain ID, router factory, pool registry, token metadata, and resumes after the latest Quainance snapshot.
Reads reserves and Swap logs, normalizes token decimals, derives pair prices, USD context, liquidity, and constant-product depth.
Upserts Quainance swaps and pool snapshots and records transport/source health.
Powers pool-level volume, liquidity, depth, price, and source status in QUAI Live and Overview.
The chain cannot produce its canonical output without these dependencies.
Primary transport for blocks, logs, contract calls, and deployment verification.
Checkpoint lookup, DEX persistence, and source heartbeat.
Factory, router, pool, token, chain, and shard configuration.
Recovery, enrichment, transport, or coordination paths that do not replace the canonical source of truth.
Guarded fallback after the configured WebSocket failure threshold.
Uses eth_* methods when the matching quai_* method is unsupported.
Storage contract
Tables read or written by this worker chain.
Swipe horizontally to inspect all columns
| Table | Purpose |
|---|---|
| dex_swaps | Decoded Quainance swaps across registered pools. |
| dex_pool_snapshots | Pool reserves, price, liquidity, depth, shard, and checkpoints. |
| market_feed_connections | Quainance RPC transport heartbeat and fallback state. |
Product outputs
User-facing workspaces directly powered by this chain.
Confirmed Cyprus-1 block range and active transport
- To Block
- 9 310 263
- From Block
- 9 310 260
- Active Transport
- quais-websocket
Cycle metadata
- Ws Connected
- Yes
- Inserted Swaps
- 0
- Inserted Snapshots
- 3
- Http Fallback Active
- No
Implementation map
Primary repository files implementing this worker chain and its product read path.
