Live Execution Pipeline
Full pipeline status, data parity, discovery cycles, data lifespan, blockers, and identity wiring
ethers.js v6 Wallet.signTransaction(). JIT hold unsigned. Signer recovery verified. SHADOW/LIVE gate. EIP-1559 type-2.
Canonical P0_VENUE_REGISTRY. QuickSwap V2/V3-Algebra, SushiSwap, Uniswap V3, Curve, Balancer V2, Aave V3. Bytecode provenance. Balancer reentrancy rule.
ethers.Interface.encodeFunctionData() for execute(ExecutionPlan). ABI roundtrip test. Sealed payload. eth_call simulation. Selector + length verification.
Live Aave V3 + Balancer V2 liquidity query. Economics-aware source selection. Balancer reentrancy topology enforced. Premium in economics. Insufficient liquidity rejects route.
WebSocket Sync/Swap/Mint/Burn → in-memory CPMM at 0ms. CLMM Multicall only on touched pools. WARM→HOT instant on 25 bps or 2% volume. 95% RPC reduction.
Chainlink AggregatorV3 (8 feeds) + Curve/Balancer virtual price + Uniswap V3/Algebra TWAP. PASS/WARN/FAIL divergence gates. All 16 tokens live-priced. apexService auto-sync to token_registry.
| Data Type | TTL / Lifespan | Expiry Action | Phase |
|---|---|---|---|
| Block header / WSS event | 1 block TTL | Discarded after factory watcher processes | Phase 1 |
| Factory event log | Permanent | Written to pool registry, never expires | Phase 2 |
| Pool registry entry | Permanent (until REJECT) | Demoted to REJECT tier, archived | Phase 3 |
| Pool tier score | Per scan policy (1/20/300 blocks) | Re-scored on next scan cycle | Phase 3 |
| Pool state cache (HOT) | Max 2 blocks | Stale state → re-hydration required before math | Phase 4 |
| Staged route data | 1 block | Discarded, re-staged next cycle | Phase 4 |
| Invariant math quote | 1 block | Stale quote → re-compute before simulation | Phase 5 |
| Simulation result | 1 block | Stale sim → re-simulate before relay | Phase 6 |
| Holding Tank TX | Max 3 blocks | Forced flush or expiry on 3rd block | Phase 7 |
| Nonce state | Per flush attempt | Refreshed via dual eth_getTransactionCount | Phase 7 |
| Signed bundle | Target block + 1 | Relay drops bundle after target block passes | Phase 8 |
| Relay outcome / tx log | Permanent (Supabase) | Persisted to transaction_logs table | Phase 8 |