Werracle v2.0: Constant-Storage EVM Procedural Oracles, Multi-Chain OEV Surveillance, and Formally Verified Liquidation Models

Volkan Dagli, Zerrin Dagli, Daghan Dagli, Volkan Dağlı

Anadolu University · ITouch Systems · Mersin University · Yusuf Kalkavan Anatolian High School · Toros Science High School

Published December 1, 2026 · on the feed December 3, 2026 · ▲ 1 · arXiv 2609.30719

The abstract

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.

The Brief

3:05

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Werracle v2.0. Constant-Storage EVM Procedural Oracles, Multi-Chain OEV Surveillance, and Formally Verified Liquidation Models. By Volkan Dagli and three others, from Anadolu University, ITouch Systems, and three other institutions. Published on the first of December.

Decentralized finance protocols would like to run adaptive risk scoring directly inside smart contracts on the Ethereum Virtual Machine, and they run into a barrier of storage and of latency. Putting a neural network on-chain is expensive. Storing one hundred thousand FP32 weights takes roughly two hundred and fifty million gas through SSTORE, or around eighty million gas if the weights are kept in bytecode instead. The other route, Zero-Knowledge Machine Learning, moves the work off-chain but pays for it in time: somewhere between ten seconds and three hundred seconds of proving latency, followed by about three hundred and eighty thousand gas to verify the proof.

Werracle v2.0 sidesteps both costs by keeping almost nothing in storage at all. Its decision kernel is procedural and its storage is constant: the whole thing is packed into a single thirty-two-byte EVM storage slot, which the authors call PackedSeed, and reading it costs one hundred gas as a warm SLOAD. Alongside the kernel sits a second component with a different job, a read-only, multi-chain observatory for Oracle Extractable Value, or OEV.

Compared with version one, the computation itself has been thinned out. The dense sixteen-point loop of v1.0 is replaced by a twelve-point, three-plane Sparse Harmonic Tripod, computed with native int256 unchecked arithmetic in the Q16.16 format. Across a twenty-five-vector sweep in Solidity, that change cuts pure view forward gas by ninety-two point four nine percent, from about two hundred and twenty-six thousand gas down to about seventeen thousand.

Full warm transactions land between thirty-eight thousand five hundred net gas at the low end and fifty-five thousand six hundred at the high end. That places them between four point nine times and six point three times below EZKL verification. The authors also report parity on the live Aurora Testnet, and standalone fee-governor adapters.

The observatory produces a live, read-only snapshot. It spans twelve Aave v3 chains over a seven-day rolling window, and Morpho Blue over a window of five point six five days. On Arbitrum and Base, Chainlink SVR captures between seventy-five percent and eighty-five point seven percent of the meaningful Aave liquidations, though those samples are small, seven to eight events.

Ethereum L1 looks very different. There, Aave shows zero percent SVR capture. Morpho Blue on L1 spans one thousand one hundred and thirty markets, with eighty-seven point two percent Gate-A capture in the same block or earlier. Both remain predominantly open-race.

Around the engineering sits a layer of formal models in Lean 4. There are thirteen core theorems about the EVM kernel, with zero sorry. Twenty-seven extended theorems on discrete dynamics are checked locally, and forty-three more live in companion runtime-verification packages. Put together, the paper offers three things at once: a risk kernel small enough to fit in one storage slot, a measurement of who captures liquidation value across chains, and proofs about the kernel's behaviour.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.