
BlotChain-MEVShield
3D WebGL control plane detecting MEV sandwich threats & enforcing EIP-712 policies via v4 hooks.
Demo
About
BlotChain-MEVShield is a 3D WebGL Spatial Control Plane and real-time threat monitoring dashboard designed to protect DeFi transactions on Arc Testnet and Uniswap v4 from MEV exploits, specifically sandwich attacks and mempool front-running. Users submit intents through an immersive 3D spatial interface built with React and Three.js. As intent payloads enter the system, our risk engine analyzes transaction paths, mempool activity, and pool states indexed by The Graph. When a high-risk sandwich attack scenario is detected, the visual HUD instantly highlights the targeted Uniswap v4 Hook node in red, calculates safe slippage parameters, and generates a cryptographically signed EIP-712 execution policy. This policy is verified on-chain within the Uniswap v4 hook before Swap trigger, neutralizing predatory bots before execution.
How it's made
BlotChain-MEVShield is built using a modern decoupled architecture engineered for high availability and low latency: • Frontend & 3D Engine: Built with React, Three.js, @react-three/fiber, and Tailwind CSS for the glassmorphic spatial control plane UI, hosted on Vercel. • Backend & Risk Engine: Node.js/TypeScript backend utilizing Viem and Wagmi for EIP-712 signature generation, combined with custom Subgraphs on The Graph to query real-time DEX pool states. • On-Chain Hook: Uniswap v4 Custom Hook written in Solidity and deployed on Arc Testnet. The hook validates the EIP-712 execution policy inside the beforeSwap() function to enforce maximum slippage limits and prevent front-running. • API Proxy & Resilience: Configured vercel.json rewrites for seamless API routing with zero CORS hurdles, supported by an automatic multi-tier fallback architecture to guarantee 100% UI availability.