QuaiWhale logo
QuaiWhale
DEX

Quainance Liquidity

Tracks Quainance pools, swaps, reserves, prices, liquidity, and two-percent depth on Quai.

Live
Runtime key
quainance_feed
Railway process
quainance-feed
Required production process
Last heartbeat
Jul 31, 2026, 12:42:06 a.m.
UTC
Last successful cycle
Jul 31, 2026, 12:42:06 a.m.
UTC
Runtime status
completed
Next scheduled run
Not available
No next_run_at exposed
Last cycle duration
264ms
Completed Jul 31, 2026, 12:42:06 a.m. UTC
Process started
Jul 31, 2026, 12:32:58 a.m.
UTC
Current runtime snapshot

Point-in-time operational summary

This worker exposes a current loop-state record in this view. No multi-run history is requested or inferred.

Live
Runtime status
completed
Next scheduled
Not available
Checkpoint fields
3
Metadata fields
4
Exact data chain

Input to product surface

required process
Step 1Input
Cyprus-1 RPC transport

Uses a persistent Quai WebSocket JSON-RPC client through a fetch bridge, with a guarded HTTP fallback when configured.

Step 2Verification
Verify deployment and checkpoint

Validates chain ID, router factory, pool registry, token metadata, and resumes after the latest Quainance snapshot.

Step 3Normalization
Read pools and decode swaps

Reads reserves and Swap logs, normalizes token decimals, derives pair prices, USD context, liquidity, and constant-product depth.

Step 4Persistence
Persist pools, swaps, and heartbeat

Upserts Quainance swaps and pool snapshots and records transport/source health.

Step 5Product
Expose Quainance intelligence

Powers pool-level volume, liquidity, depth, price, and source status in QUAI Live and Overview.

Required dependencies

The chain cannot produce its canonical output without these dependencies.

Quai Cyprus-1 WebSocket RPC

Primary transport for blocks, logs, contract calls, and deployment verification.

Supabase service role

Checkpoint lookup, DEX persistence, and source heartbeat.

Quainance deployment registry

Factory, router, pool, token, chain, and shard configuration.

Secondary and fallback paths

Recovery, enrichment, transport, or coordination paths that do not replace the canonical source of truth.

HTTP RPC fallback

Guarded fallback after the configured WebSocket failure threshold.

Namespace fallback

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

TablePurpose
dex_swapsDecoded Quainance swaps across registered pools.
dex_pool_snapshotsPool reserves, price, liquidity, depth, shard, and checkpoints.
market_feed_connectionsQuainance RPC transport heartbeat and fallback state.

Product outputs

User-facing workspaces directly powered by this chain.

Runtime checkpoint

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.

workers/quainance-feed/start.cjs
workers/quainance-feed/ws-rpc.cjs
workers/market-feed/quainance-feed.js
app/lib/market-feed/quainance-store.js