Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
awesome-uniswap-v4-hooks
A curated list of awesome Uniswap v4 hooks resources -- including examples, tools, templates, tutorials, and more.
https://github.com/johnsonstephan/awesome-uniswap-v4-hooks
Last synced: about 14 hours ago
JSON representation
-
📍 Where to Start
- Core smart contracts of Uniswap v4 - core`'s singleton-style architecture, the management of all pool state in `PoolManager.sol`, and use of hook contracts to implement callbacks in the lifecycle of pool actions.
- Peripheral smart contracts for interacting with Uniswap v4 - periphery` hosts the logic that builds on top of the core pool logic like hook contracts, position managers, and even possibly libraries needed for integrations. It is still under development and is being updated as the v4 ecosystem matures. Includes the `BaseHook` contract that can be used as a base for creating custom hooks.
- Uniswap V4: A New Era For Defi - - highlighting hooks' ability to attract liquidity, design new interfaces, and bridge DeFi into the mainstream.
- Draft Technical Whitepaper for Uniswap v4 Core
- Contribution Guidelines for Uniswap v4 Core
- Uniswap's V4 Announcement
-
📜 Examples
-
From the Community
- Whitelist - risk traders.
- New York Trading Hours
- Hedging Mechanism
- Impermanent Loss Hedge (Antonio Furtado)
- Impermanent Loss Hedge (Makemake)
- Median Price Oracle
- Stop Loss Order
- On-Chain Take Profit Order - chain "take-profit" orders. This means that the position will be automatically closed if the price reaches a certain level.
- Hyperlane LPTs
- Torres Token Sale
- NFT Owners Only
- Curve Style Voting Escrow - veLP - style voting escrow (ve) hook. This can be used to create a more democratic and efficient way to vote on changes to a liquidity pool.
- Huff Hooks
- Multi-Sig
- Old Account
- KYC
- Trading Hours
- Liquidity Provider Fee Rebate
- Whitelist - risk traders.
- Multi-Sig
-
From Uniswap
- Full Range
- Geomean Oracle
- Limit Order
- TWAMM - weighted averages to calculate the prices of assets. This can be used to reduce the volatility of the market and to provide more accurate prices for assets.
- Volatility Oracle
-
-
🛠 Tools
-
From the Community
-
-
📐 Templates
-
From the Community
- Saucepoint's Template
- SolidityLabs' Template - based template for developing custom pool in Uniswap v4 with hooks.
- Arrakis' Playground - based application that allows you to interact with hooks. You can use this playground to test your own hooks or to learn more about how hooks work. This playground can be used to test the functionality of your hooks by simulating swaps.
- Lucas Martin Calderon's Template
- Nick Addison's Template
- Saucepoint's Template
-
-
🎓 Tutorials
-
From the Community
- LearnWeb3: On-chain "take-profit" orders hook - profit' positions, exemplified by the scenario where a user in an ETH/DAI pool can set an automatic order to sell all their ETH when the price reaches a determined price.
- Solidity Developer: Integrate Uniswap v4 and create a custom hook
- James Bachini: Introduction to Hooks
-
-
💡 Articles
-
🍿 Videos
-
From the Community
- Hayden Adams announcing the release of Uniswap V4 (Bankless) - minute video covering the release of Uniswap v4, including the hook centric roadmap at [43:29](https://youtu.be/ZmhdNiGOMRU?si=Txqbp0wLnU8gdQn4&t=2609).
- Hayden Adams on what makes v4 special (Unchained Podcast) - minute video highlighting v4 including an explanation of hooks, their most common uses, and security concerns starting at [21:05](https://youtu.be/KNK-W8JDuWg?si=a4RIqonO1Bj-DpCf&t=1265).
- Uniswap V4 Deep Dive with Head of Protocols Sara Reynolds (The Defiant) - minute video discussing v4 including an overview of hooks and attack vectors starting at [4:30](https://www.youtube.com/live/6e8n_GedrMY?si=l5lSMSUOvZ54w4HP&t=270).
- Uniswap v4: Hooks, Singletons and Controversy (Blockcast) - minute video exploring v4 including a discussion of hooks starting at [1:21](https://youtu.be/cu5S87U2dXs?si=7TaaqhjZ4WmpOjb_&t=81).
-
-
💡 Creative Ideas
-
From the Community
- Loss Versus Rebalancing Minimization - domain MEV sources within the DEX ecosystem, specifically on loss-versus-rebalancing (LVR).
- Oracleless Lending Protocol - free operations, and enhanced earnings for liquidity providers.
- Torando Cash on Hooks - like system, utilizing all of Uniswap's liquidity as its pool.
- Hook Safety as a Service
- Gasless Swaps - toxic MEV executer with gasless swaps.
-
-
👀 See Also
-
From the Community
- Uniswap Hooks Discussion Board
- StackExchange: Hooks, returning the function selector
- Uniswap Twitter thread on the first ever Hookathon
- Uniswap Twitter thread on TWAMM - tweet thread on the use case for time weighted automatic market makers.
-
Programming Languages
Categories
Sub Categories
Keywords