Learn about Uniswap v4, with these educational resources
Community Hub
Do you have a resource you'd like to add? Add it here.
Combining UniV4 Hooks β Dynamic Fees + Liquidity Locking
An article about how we combined two of our hooks - Dynamic fees and Liquidity locking.# proof-of-conceptsDynamic Fees
The second hook from our Hook POC Uniswap Foundation grant adjusts the swapping fees based on the trading volume.# proof-of-conceptsLocking liquidity
Locking liquidity hook POC, the design, and the options it presents. Built by builders, for builders.# proof-of-conceptsExpanding Opportunities with Uniswap V4 Hooks
A comprehensive guide on the potential and capabilities of Uniswap v4 hooks for developers. This resource delves into the technical aspects and innovative features of Uniswap v4, offering insights into how it's transforming the DeFi space.# advanced-tutorialsUniswap V4 Explained
Uniswap V4 marks a significant leap in decentralized exchange technology, introducing "hooks" for enhanced customization and cost-efficiency in DeFi trading. This resource offers a comprehensive overview of its key innovations, including the singleton model for reduced gas costs, dynamic fee adjustments, and advanced flash accounting, positioning Uniswap V4 as a game-changer in the DeFi landscape.# articlesLiquidity management
In this article, we cover the design of our Liquidity management hook from our Uniswap Foundation Hook POC grant.# proof-of-conceptsKYC Verification Hook in Uniswap V4 and Its Impact
This resource discusses the controversial KYC (Know Your Customer) verification hook in Uniswap v4. It sheds light on the debates and discussions within the DeFi community regarding privacy and regulatory compliance in decentralized finance.# advanced-tutorialsOn-Chain "Take-Profit" Orders in Uniswap V4
Explore the power of Uniswap v4's hooks to create fully on-chain "take-profit" orders. This resource illuminates how custom hooks can modify DEX functionalities without forking Uniswap, allowing for innovative trading strategies and enhanced user experience in decentralized exchanges.# advanced-tutorialsOn-Chain Limit Orders Hook Creation in Uniswap V4
This YouTube video guides viewers through the process of creating on-chain limit orders hooks for Uniswap v4 using Foundry and Solidity. It is an essential resource for developers interested in smart contract development and integration with decentralized finance platforms.# videosNadison Playground for Uniswap v4 Hooks
This resource covers a range of features and functionalities of Uniswap v4 Hooks. It includes an exploration of lifecycle hooks like initialize, position, swap, and donate, management of hook-based fees, protocol fees on swaps and withdrawals, support for ERC-1155 token accounting, native ETH pools akin to Uniswap V1, and the capability to donate liquidity to pools.# proof-of-conceptsUniswap V4: What You Need to Know
This insightful blog traces the evolutionary journey of Uniswap, from its initial V1 release to the latest V4 iteration. It delves into the key enhancements each version brought, from simple ERC-20 and ETH token swaps in V1, to the complex liquidity provisions in specific price ranges in V3, setting the stage for the anticipated innovations in V4.# guidesSaucepoint: Getting Started with the v4-template
A guide to using the v4-template for creating custom hooks, including testing and troubleshooting tips.# templatesHayden Adams announcing the release of Uniswap V4 (Bankless)
A 90-minute video where Hayden Adams covers the release of Uniswap v4, including details on the hook-centric roadmap.# videosHayden Adams on what makes v4 special (Unchained Podcast)
An 80-minute video featuring Hayden Adams discussing the unique aspects of Uniswap v4, including hooks, their uses, and security concerns. Section: πΉ Videos# videosUniswap V4 Deep Dive with Head of Protocols Sara Reynolds (The Defiant)
A 75-minute deep dive into Uniswap v4 with Sara Reynolds, discussing hooks and potential attack vectors.# videosUniswap v4: Hooks, Singletons and Controversy (Blockcast)
A 22-minute video exploring Uniswap v4, with a focus on hooks and related discussion points.# videosUmbrella Research: A Deep Dive With Captain Hook (I)
A tutorial demonstrating how developers can implement role-based features within the Uniswap v4 protocol.# case-studiesCaptain Hook: Uniswap Hooks Tutorial
A tutorial featuring three different proofs of concept hooks, each accompanied by a tutorial blog post.# proof-of-conceptsJames Bachini: Introduction to Hooks
A tutorial on using the "beforeSwap" hook function to implement custom actions during a swap.# guidesSolidity Developer: Integrate Uniswap v4 and create a custom hook
A deep dive tutorial showcasing the mechanisms for executing fees, Ethereum address prefixes for hooks contracts, and using CREATE2 for deterministic contract deployment.# advanced-tutorialsLucas Martin Calderon's Template
A template for a hook created for the ETHGlobal Hackathon, useful for creating custom hooks to provide liquidity to specific pools.# templatesNick Addison's Template
A hook template that includes a factory for mining addresses and generating trace diagrams, aiding in custom hook creation.# templatesGnome101's Hardhat Template
A template and playground using hardhat for creating and testing custom hooks.# templatesUniswap Foundation: v4 by Example
A website presenting Solidity snippets for integrating and using Uniswap v4, offering an introduction through simple examples.# guidesUniswap v4 Hook Test Framework
A fuzz testing framework for Uniswap V4 Hooks, built during ETHGlobal 2023. This framework tests the security of your hooks.# librariesUniswap v4 Tests
A test suite for working with Uniswap v4 hooks. This suite verifies that your hooks are functioning correctly.# librariesDraft Technical Whitepaper for Uniswap v4 Core
Covers an introduction to Uniswap v4, hooks, singleton and flash accounting, native ETH, and other notable features.# articlesUniswap's v4 Announcement
Official announcement article from Uniswap detailing their vision for v4, including the introduction of hooks.# articlesArrakis' Playground
A web-based application for interacting with hooks, allowing testing of your own hooks or learning about their operation. Simulates swaps to test hook functionality.# templatesUniswap Foundation's Template
A template repository providing a starting point for writing Uniswap V4 hooks, with necessary files and contracts. Ideal for creating custom hooks that execute arbitrary code on swaps. Originally developed by saucepoint.# templatesQuantum3 Labs's Scaffold
A boilerplate to use Uniswap v4 hooks with scaffold eth, facilitating hook development.# advanced-tutorialsSolidityLabs' Template
A Foundry-based template for developing custom pools in Uniswap v4 with hooks.# templatesPeripheral smart contracts for interacting with Uniswap v4
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.# librariesScaffold Hook
Uniswap v4 Hook development stack, complete with testnet deployment and UI. This tool helps builders develop and test Uniswap v4 Hooks with minimal interfaces for the swap lifecycle (pool creation, liquidity provision, and swapping).# librariesHook Mine And Sinker
Mine addresses for UniswapV4 Hooks. This tool generates random addresses eligible to become hooks, useful for testing or deploying your own Hooks.# librariesHook Deployer
Hook create2 deployer. This tool can deploy hooks to Ethereum, facilitating the implementation process.# librariesUniswap v4 Developer Documents
Official V4 Developer Documents from Uniswap Foundation, covering topics including how developer would begin to start building out hooks on local testnets in order to start testing out hook designs.# guidesCore smart contracts of Uniswap v4
The core smart contracts of Uniswap v4, highlighting 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.# proof-of-concepts