QuaiWhale logo
QuaiWhale
DEX

Quainance Liquidity

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

Unavailable
Runtime key
quainance_feed
Railway process
quainance-feed
Required production process
Last heartbeat
Not available
UTC
Last successful cycle
Not available
UTC
Runtime status
Not reported
Next scheduled run
Not available
No next_run_at exposed
Last cycle duration
Not available
No completed cycle timestamp
Process started
Not available
No process start exposed
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.

Unavailable
Runtime status
Not reported
Next scheduled
Not available
Checkpoint fields
0
Metadata fields
0
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

No checkpoint reported

The worker has not yet persisted a public checkpoint for this process instance.

Cycle metadata

No runtime metadata

This chain does not currently expose additional public cycle details.

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