← Work

TypeScript

MEV Shield

CodeMongerrr/MEV-Shield

MEV Shield simulates the exact sandwich attack a bot would run against your swap, prices your real exposure, and then picks the cheapest safe way to execute, a public swap, a private relay or a split order.

The attack is replayed in exact Uniswap V2 integer math on live mainnet reserves, and the search covers up to 1,100 public and private route splits per trade. In the model a 250 ETH swap can lose $35.9K to a sandwich, swaps under about 13 ETH are not worth attacking, and the best route brings that 250 ETH swap's cost under $1K.

Protection preferences live on chain as ENS text records, so the policy follows your identity across wallets. Built at ETHGlobal HackMoney 2026.

TypeScriptviemUniswap V2FlashbotsENS

View source on GitHub →

← All work