Skip to content

About

Uniswap v4 hook to resist MEV using a snapshot-based median priority fee. 100% on-chain math. UHI10 Capstone Project.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Frame 45(15)

Uniswap_v4_hook License First Commit Last Commit Commit Count Tests Coverage

Pulse Hook

This hook is built to solve the MEV problem for low-liquidity pools - a ready-to-use solution for creator coin pools, niche memecoins or launchpads. It uses a priority fee median to track unusual behavior and make MEV-patterned swaps less profitable.

🧬 No external off-chain modules or oracles. Runs entirely on-chain. No Partner Integrations.

Inspired by Uniswap v4 Truncated Oracle Hook and median-oracles by saucepoint

What Pulse Hook does

  1. Reads the priority fee - Checks the extra fee paid for faster transaction inclusion.
  2. Compares it to the norm - Measures it against the recent typical level.
  3. Normal swaps pay 0.1% - No extra fee when the bid is near the norm.
  4. Aggressive bids pay more - Higher-than-normal priority fees trigger a dynamic surcharge.
  5. The swap executes normally - The extra fee goes to the pool.
  6. Updates from meaningful swaps - Eligible trades can update the typical priority fee.
  7. Resists manipulation - Only eligible pools and meaningful price movements affect the shared reference.

Explore the hook

🔮 DOCUMENTATION - find much more structured information about the hook here.

👾 LLMs - discuss the hook and its docs with your favorite ai agent.


Build with the hook

🍇 INIT POOL - find how to deploy a pool with a hook here.

⚗️ DEPLOY HOOK - see how to install, test, evaluate, modify, and deploy the hook.

About

Uniswap v4 hook to resist MEV using a snapshot-based median priority fee. 100% on-chain math. UHI10 Capstone Project.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages