MEVengers
🚀 MEVengers: World's first social mechanism to hedge against MEVs 💰⚡
Problem Statement
MEVengersis the world's first MEV (Maximal Extractable Value) protection system accessible through Telegram, democratizing MEV protection for retail users.The ProblemProblem 1: MEV Extraction Hurts Regular UsersUsers get worse prices due to sandwich attacks, front-runningNo protection mechanism for retail tradersMEV extraction is "invisible" to most usersProblem 2: Static Fee Models Don't AdaptUniswap pools have fixed fees (0.05%, 0.3%, 1%)Can't respond to market conditions dynamicallyHigh MEV periods get same fees as low MEV periodsProblem 3: No Real-Time MEV VisibilityNo alerts when users are being targetedPost-hoc analysis only (Flashbots, etc.)Users can't take protective actionOur SolutionMEVengers creates a complete ecosystem where:🔍1. Smart MEV detectionOur smart MEV detection system computes and onchain MEV score by analysing the following params:Swap amounts from BalanceDeltaTime since last large swapCalculate price impact estimateCheck for rapid consecutive swaps🏆2. Time Weighted Auctions to hedge against MEVsOur hook automatically detects MEV scenarios and starts fee auctions. Users compete to set protective fees - winner pays premium but gets 50% back, everyone else gets protection. It's like surge pricing for MEV protection, but decided by the communityWe implement Time Weighted Auction mechanics to incentivize early bidders: Early bidders get 20% time bonus Mid bids get 10% time bonus🛡️3. MEV InsuranceCommunity-Funded: Automatic funding from auction proceedsEvidence-Based: Requires cryptographic proof of MEV lossPartial Coverage: 50% compensation to prevent moral hazardPool-Specific: Separate insurance funds per trading poolMEVengers transforms MEV from a zero-sum extractive force into a positive-sum community mechanism where users actively participate in protecting each other.
Solution
MEVengers is built as a complete end-to-end ecosystem integrating cutting-edge Web3 infrastructure with accessible Web2 UX.Core Architecture🔗Uniswap v4 Hook Smart Contracts (Solidity)Custom Hook Implementation: Built on Uniswap v4's revolutionary hook architectureMEV Detection Engine: Real-time on-chain analysis using transaction patterns and volume thresholdsAuction Mechanism: Time-weighted competitive bidding with automatic settlementAdvanced Features: Emergency circuit breaker, insurance fundGas Optimization: Efficient storage patterns and event emission for minimal transaction costs🤖Telegram Bot Integration (Node.js)Rich Interactive UI: Inline keyboards for one-click biddingReal-Time Updates: Live message editing during auctionsWallet Management: Secure encrypted private key storage per userNotification System: Instant alerts with customizable preferences🛠️Development & Testing InfrastructureFoundry Framework: Comprehensive test suite with 100% core functionality coverageLocal Development: Anvil integration for instant testing and demo environmentsIntegration Testing: End-to-end automation testing all user workflowsDemo Automation: One-click demo environment setup with pre-configured scenariosTechnical Innovations🎯Time-Weighted Auction MechanicsWe implemented a novel auction system where earlier bidders receive time-based bonuses, creating incentives for rapid community response to MEV threats while maintaining fair price discovery.🚨Emergency Circuit Breaker PatternBuilt a comprehensive pause mechanism that can halt all operations except admin functions during security incidents, with granular permission controls that allow owners to operate even during emergency states.💰MEV Insurance IntegrationCreated a community-funded insurance system where auction proceeds automatically contribute to a victim compensation fund, turning MEV protection into a positive-sum community endeavor.📱Telegram-First DeFi UXPioneered accessible DeFi interactions through messaging interfaces, with real-time blockchain state updates delivered as interactive chat messages with proper error handling and user feedback.
Hackathon
ETHGlobal New Delhi
2025
Prizes
- 🏆
Build with Uniswap v4 Hooks2nd place
Uniswap Foundation
Contributors
- shivanshxyz
12 contributions
- rohit0110
5 contributions