TRANSMISSION // 2609.30719v2
A tiny on-chain kernel for DeFi risk decisions
Source published
Werracle v2.0 reports a lower-gas procedural decision kernel and a read-only survey of liquidation activity. Its benchmarks are promising, but they do not establish predictive accuracy or live-market effectiveness.

Smart contracts have little room for heavyweight models: computation costs gas, and decisions may need to happen within a block. Werracle v2.0 proposes a compact alternative and pairs it with a snapshot of liquidation activity across several blockchain markets.
The problem: decisions under tight limits
Decentralized-finance (DeFi) smart contracts can act only within the computational and timing limits of their blockchain. A complex risk model may be too costly to store or run directly in a contract. Moving computation off-chain and checking a proof on-chain is another option, but the authors argue that proof generation can take too long for decisions that must be made within a block.
Werracle v2.0, a research preprint by Volkan Dağlı, Zerrin Dağlı and Dağhan Dağlı, explores a smaller alternative: a deterministic “procedural” decision kernel. Rather than store a large collection of model weights, it stores a compact seed and computes a bias from that seed. The authors position this as a tool for limited risk-scoring and fee-setting tasks, not as a general-purpose replacement for machine learning.
What the team built and measured
The kernel’s seed is packed into one 32-byte storage slot. Its updated computation, called a Sparse Harmonic Tripod, evaluates 12 points across three scales using fixed-point arithmetic. The team compared its Solidity implementation with an earlier version using 25 risk-score inputs on a local Ganache EVM—a software environment that imitates Ethereum execution.
In that test, average gas for the kernel’s view computation fell from 226,363 to 16,993. A “view” call reads and calculates without changing blockchain state; it is not the same as the full cost of submitting a transaction. The authors also report full warm-transaction costs and a separate, simplified fee adapter. Those measurements depend on their test setup and should not be read as a universal cost for every chain or deployment.
A second part of the work is a read-only observatory that tracks liquidations and Oracle Extractable Value (OEV)—value associated with how oracle updates and liquidation opportunities are handled. The paper reports a seven-day Aave v3 snapshot across 12 chains and a 5.65-day Morpho Blue snapshot. It says Chainlink’s Smart Value Recapture (SVR) auctions accounted for six of seven meaningful liquidations on Base and six of eight on Arbitrum in that window. On Ethereum’s Aave market, the authors observed no SVR capture in their sample. For Ethereum Morpho Blue, they report that their monitor could have made a valid liquidation decision before or in the same block as the winning competitor for 212 of 243 meaningful events.
These are observations from a short, defined period, not estimates of long-run market behavior. The paper itself notes that the Aave samples on the two Layer 2 networks are small. The observatory was read-only: it sent no liquidation transactions to mainnet. Its “capture” measure describes the monitor’s timing relative to observed events, not profits actually earned by a deployed Werracle system.
What formal verification does—and does not—show
The authors report 13 Lean 4 theorems for core mathematical properties, including bounds and storage-packing invariants. They distinguish these from additional theorems in extended and companion packages. Importantly, the paper says the proofs cover abstract mathematical models, not the compiled Solidity bytecode. It also acknowledges that the updated 12-point computation and overflow behavior in its unchecked arithmetic have not yet been mechanized in Lean.
That distinction matters: a proof about a model is useful evidence about the stated mathematics, but does not by itself establish that deployed code behaves as intended in all circumstances. The paper also lists contract-hardening concerns and says controlled comparisons of predictive accuracy against simpler risk baselines remain future work. Thus, the gas results show a measured computation-cost reduction in the tested setup—not that the kernel identifies risky events accurately or improves DeFi outcomes.
How to read the result
Werracle v2.0 is best understood as an engineering demonstration: the authors report a compact on-chain computation, provide local gas measurements, and publish a snapshot of liquidation competition. Whether its decision rule is useful for real risk management requires further testing, including accuracy comparisons, longer market observations, and secure integration into deployed contracts.
The paper is an arXiv preprint, so its claims should be treated as preliminary rather than as peer-reviewed findings. The source describes code, tests and data as available, which may help others reproduce or challenge the results; independent verification is still important, especially for security-sensitive smart-contract software.
- DeFi
- smart contracts
- Ethereum
- gas benchmarks
- liquidations
- formal verification
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Can a tiny engine handle fast AI triage?
Shared method: Both describe constant-storage procedural decision systems using a compact boundary seed; WERR Map explicitly identifies Werracle as a companion EVM study. Their reported gas figures are not directly comparable: the excerpts describe different kernels and execution paths, and WERR Map labels its EVM profile as a companion-study result.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2609.30719v2 — Original paper
Excerpt reference:
static/papers/2609.30719v2.md:198-289
Basis: Paper text
Source file SHA-256:b83b242a272afe78c02e27830994c80000ce4c0e012f2fc3318a860e3cc85bd02609.25498v3 — Original paper
Excerpt reference:
static/papers/2609.25498v3.md:1556-1591
Basis: Paper text
Source file SHA-256:35cb051647ffdb00d75ed868a68ae86776445691d4412e8f57a1f2d86b61623c2609.25498v3 — Original paper
Excerpt reference:
static/papers/2609.25498v3.md:83-160
Basis: Paper text
Source file SHA-256:35cb051647ffdb00d75ed868a68ae86776445691d4412e8f57a1f2d86b61623c
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
NFTBench Evaluates AI Decisions on NFT Tasks
Source published
Shared keywords: smart contracts
What Formal Verification Can—and Cannot—Show About Cognitive Models
Source published
Shared keywords: formal verification
Teaching AI to Write Code It Can Prove
Source published
Shared keywords: formal verification
Why Passing Tests May Not Prove an AI Patch Is Correct
Source published
Shared keywords: formal verification
Where Modal Logic Meets Graph Learning
Source published
Shared keywords: formal verification