Detox-Hook

DetoxHook transforms MEV extraction into LP earnings via Uniswap V4 hooks and Pyth real-time oracles

ETHGlobal PragueShipped May 30, 2025Prize winner#defi#payments#gaming#infra
Visit Repo
Detox-Hook banner

About

DETOX HOOK – a revolutionary Uniswap V4 Hook that transforms toxic arbitrage extraction into sustainable LP earnings, creating the first on-chain MEV protection system that benefits liquidity providers instead of sophisticated bots.

THE PROBLEM: MEV bots extract $1B+ annually from Uniswap pools while LPs suffer impermanent loss. When pools become mispriced vs global markets, sophisticated arbitrageurs capture profits, leaving LPs with depleted reserves.

OUR SOLUTION: DetoxHook monitors every swap against real-time Pyth Network oracle prices. When traders attempt swaps at prices significantly better than global market rates (indicating arbitrage extraction), the hook intelligently intervenes to:

  • Capture 70% of arbitrage profit through dynamic fee adjustment
  • Instantly donate 80% of captured value to LPs via PoolManager.donate()
  • Allow normal swaps unaffected – only opportunistic arbitrage pays the toll
  • Maintain fair pricing without off-chain intervention

PERMISSIONLESS ACCESS: Every liquidity provider in the Uniswap V4 ecosystem can initialize a pool attaching DetoxHook and thereby reap its benefits. No gatekeeping, no special permissions – just deploy a pool with our hook address and start earning from MEV instead of losing to it.

THE PYTH ADVANTAGE: This system is only possible with Pyth's unique capabilities: 🔥 Real-time data queried within the same transaction (400ms updates) 🔥 Confidence intervals ensuring price reliability before triggering fees 🔥 Freshness validation preventing stale data from creating false arbitrage 🔥 Institutional-grade data from 90+ first-party providers

LIVE RESULTS: Deployed on Arbitrum Sepolia at 0x444F320aA27e73e1E293c14B22EfBDCbce0e0088 with 2 active ETH/USDC pools. Real Pyth integration working with <500ms oracle latency.

Game theory aligned: arbitrageurs still profit (30% of opportunity), LPs get boosted returns (15-25% increase), protocols capture sustainable revenue, and regular traders enjoy fairer prices with reduced sandwich risk.

This represents the future of fair DeFi – where advanced oracle technology enables MEV protection that benefits everyone, not just the bots.

Prizes

  • Blockscout · Big Blockscout Explorer Pool Prize · Big Blockscout Explorer Pool Prize
  • Pyth Network · Most Innovative use of Pyth pull oracle (Price Feeds) · 1st place
  • ETHGlobal · ETHGlobal · 🏆 ETHGlobal Prague 2025 Finalist

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?

Not checked yet.

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.

Adaptive Hook AMM

Uniswap v4 dynamic-fee hook that neutralizes sandwich attacks & LVR via intra-block MEV dampening.

OniBlock

Uniswap v4 hook where an AI prices toxic arbitrage every block, and loses power if it's wrong.