Skip to content

Protocol Integration

Protocols often fail not because of logic bugs, but because of economic exploits or congestion cascades that only occur under extreme load. Aleatoric provides a deterministic data source to rehearse those conditions.

Aleatoric acts as a Cyber-Range—a controlled, adversarial environment to stress-test your on-chain primitives. Injection into a fork or testnet is user-operated; Aleatoric supplies deterministic feeds, funding paths, and caches.

No on-chain connectors are bundled. Operators are responsible for wiring RPC relays/oracle bridges; the engine provides deterministic data and MCP controls only.

  • Scenario: A 40% flash crash in 5 minutes.
  • Test: Does your liquidation bot clear positions fast enough to prevent bad debt?
  • Aleatoric Role: Generate bursty sell-side order flow (burst_probability, trade_intensity_vol_factor) and replay it deterministically across runs.
  • Scenario: LVR (Loss-Versus-Rebalancing) attacks during high volatility.
  • Test: Measure the impermanent loss and arbitrage extraction under “toxic flow” conditions.
  • Aleatoric Role: Emit depth-aware trades + book updates; you control bridge/oracle wiring to the fork.
  1. Local Fork: Fork the mainnet state (Anvil/Hardhat/Foundry).
  2. Bridge: Stand up Aleatoric API (uvicorn aleatoric.api.main:app --port 8000).
  3. Inject: Stream /stream/live or read artifacts and push into your oracle/MEV harness.
  4. Monitor: Track protocol metrics while validating determinism by replaying the same seed.