MEV Shield

Autonomous Execution Firewall that predicts and prevents sandwich attacks on swaps.

HackMoney 2026Shipped January 30, 2026Prize winner Quiet#defi#privacy#infra#ethereum
Repo
MEV Shield banner

About

MEV Shield is an intelligent execution layer that protects users from sandwich attacks by sitting between swap intent and on-chain settlement.

It mirrors live chain state to simulate adversarial MEV strategies using real AMM mechanics, estimating how profitable an attack would be before a transaction is ever sent. Instead of executing a single large trade, the system splits orders into carefully sized chunks and routes them across Ethereum, Arbitrum, and Base, ensuring each portion is too small to be worth attacking after gas costs.

A real-time optimizer balances MEV risk, gas prices, and cross-chain routing costs to determine the most efficient execution path. If any portion of a trade remains unsafe, MEV Shield routes it through private order flow via Flashbots Protect to avoid public mempool exposure.

The result is a smart order routing system that transforms MEV from a hidden threat into a controllable execution parameter.

How it's made

MEV Shield is built as a simulation first execution engine. A backend service continuously mirrors live state from Ethereum, Arbitrum, and Base using archive RPCs and local state forking. When a user submits a swap intent, we spin up an ephemeral fork and run adversarial simulations that model sandwich attackers using constant product AMM math and profit maximization logic. This lets us estimate how extractable the trade is before it ever touches a public mempool.

The execution engine then runs a chunking optimizer that searches multiple order split configurations. Each candidate route is scored using a cost model that combines simulated MEV loss, real time gas oracles per chain, and bridge routing fees. We built a lightweight solver to keep this search fast enough for near real time UX.

Routing is handled through smart contract executors deployed on each chain, coordinated by an offchain controller that sequences chunks and tracks fill state. For high risk fragments, we integrate private order flow through Flashbots Protect to bypass public mempools.

One hacky but effective trick was caching pool reserves and precomputing price impact curves so simulations run in milliseconds instead of seconds. The result is a system that treats MEV like a quantifiable execution cost and optimizes around it in real time.

Prizes

  • ENS · Integrate ENS · Integrate ENS

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

QuietLast push 66 days ago

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Otter

First implementation of a provably MEV-resilient AMM — Uniswap v4 hook + off-chain VCG solver.

ETHOnline 2026Prize winner Quiet#defi#infra

MevProtect

MEV protection and exploration of tools, a DeFi tool that makes life harder for MEV bots by making swap fees unpredictable.