← News

Models & toolsSources: arXiv · 3 Dec 2026

Werracle v2.0 paper describes constant-storage on-chain decision kernel for DeFi risk scoring

An arXiv abstract reports a procedural kernel fitting one 32-byte storage slot, with large gas reductions, a multi-chain oracle-value observatory, and formal Lean 4 verification.

In plain words

The authors of a new paper say DeFi protocols struggle to run adaptive risk scoring inside Ethereum smart contracts because storing neural-network weights on-chain is expensive and zero-knowledge proving is slow. Their system, Werracle v2.0, compresses the decision logic into a single 32-byte storage slot and reports big gas savings plus a read-only tool that watches liquidation value across chains.

What was announced

The paper, posted on arXiv, frames the problem as a storage and latency barrier: storing 100,000 FP32 neural weights on-chain would demand roughly 250 million SSTORE gas, while zero-knowledge machine learning approaches carry 10–300 seconds of off-chain proving latency. Werracle v2.0's kernel, PackedSeed, occupies one 32-byte slot and reads for about 100 gas on a warm SLOAD. A revised 12-point Sparse Harmonic Tripod using int256 fixed-point arithmetic cut measured view-forward gas by 92.49% in a 25-vector Solidity 0.8.20 sweep, from 226,363 to 16,993 gas, with full warm transactions reported at 38.5k–55.6k net gas.

The authors also describe a read-only observatory tracking Oracle Extractable Value across 12 Aave v3 chains over a 7-day window plus Morpho Blue, finding Chainlink SVR captured 75.0%–85.7% of meaningful Arbitrum and Base Aave liquidations, while Ethereum L1 Aave and L1 Morpho Blue liquidations remained mostly open-race. Formal verification claims include 13 core Lean 4 theorems with none left incomplete, plus additional theorems in extended and companion packages. All figures come from the authors' own benchmarks and snapshots and are not independently confirmed.

What it does not show

  • Evidence is limited to the paper's abstract; full methodology, threat model, and peer review are not visible in the supplied excerpt.
  • Reported gas savings, capture percentages, and theorem counts are author-reported measurements and have not been independently verified.
  • The observatory covers a rolling 7-day window on Aave v3 chains and a 5.65-day window on Morpho Blue, so findings may not generalize beyond those snapshots.

For security and IT teams

Scope
The observatory component is described as read-only, covering 12 Aave v3 chains and Morpho Blue during short rolling windows rather than providing live intervention.

Sources

Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 4 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.