Werracle v2.0: Constant-Storage EVM Procedural Oracles, Multi-Chain OEV Surveillance, and Formally Verified Liquidation Models
Abstract
Werracle is a compact on-chain AI oracle using procedural Mandelbrot dynamics to make real-time DeFi security decisions with minimal gas and latency.
Decentralized finance (DeFi) protocols face a severe storage and latency barrier when embedding adaptive risk scoring directly inside Ethereum Virtual Machine (EVM) smart contracts: storing 100,000 FP32 neural weights on-chain demands ~250M SSTORE gas (or ~80M gas via bytecode storage), while Zero-Knowledge Machine Learning (ZK-ML) incurs 10--300 s off-chain proving latency and ~380k verification gas. We present Werracle v2.0, a constant-storage on-chain procedural decision kernel packed into a single 32-byte EVM storage slot (PackedSeed; 100 gas warm SLOAD) and paired with a read-only multi-chain Oracle Extractable Value (OEV) observatory. Replacing v1.0's dense 16-point loop with a 12-point, 3-plane Sparse Harmonic Tripod using native int256 unchecked Q16.16 arithmetic (WerracleTripodZMod9.sol) cuts pure view forward gas by 92.49% across a 25-vector Solidity 0.8.20 sweep -- from 226,363 +/- 51 gas to 16,993 +/- 8 gas (full warm transactions: 38.5k--55.6k net gas, 4.9x--6.3x below EZKL verification). Alongside live Aurora Testnet Q16.16 parity and standalone fee-governor adapters (WerracleFeeHook.sol), we report a live read-only observatory snapshot across 12 Aave v3 chains (7-day rolling window) and Morpho Blue (5.65-day window): Chainlink SVR captures 75.0%--85.7% of meaningful Arbitrum/Base Aave liquidations (n = 7--8), whereas Ethereum L1 Aave (125.8k, 0% SVR) and L1 Morpho Blue (1,130 markets, 899.1k liquid gross bonus, 87.2% Gate-A pre/same-block capture) remain predominantly open-race. Formal models comprise 13 core EVM-kernel Lean 4 theorems (0 sorry), 27 extended discrete-dynamics theorems locally, and 43 theorems in companion runtime-verification packages.
Community
Version 2.0 update is now live (arXiv:2609.30719v2): Phase-2 WerracleTripodZMod9.sol cuts pure view forward gas by 92.49% to 16,993 ± 8 gas (38.5k–55.6k full warm tx), paired with a live read-only 12-chain Aave v3 & 1,344-market Morpho Blue OEV observatory (https://radar.werracle.com) and decomposed Lean 4 formal models (0 sorry). Zenodo v2.0 replication package: https://doi.org/10.5281/zenodo.24732862 | Code: https://github.com/pCwOrM/werracle
Get this paper in your agent:
hf papers read 2609.30719 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 1
Spaces citing this paper 0
No Space linking this paper