Developers and governance drive Uniswap v4 hook customization
Uniswap v4 hooks enable developers to create custom logic for swaps and fees, reducing pool creation costs by 99.99%. The Uniswap Foundation manages protocol development while UNI token holders govern upgrades and fee structures through community voting.
Uniswap v4 released on January 31, 2025, introduced hooks that allow developers to create custom logic for how individual pools behave. These contracts permit the customization of swaps, fees, and liquidity provider positions within a single smart contract. Developers use hooks to build new market structures. Because pool creation costs dropped by 99.99%, the ecosystem attracts more diverse building projects. The v4 codebase contains hundreds of pull requests. While Uniswap v2 and v3 processed $2.75 trillion in cumulative volume, the new architecture prioritizes gas savings. The introduction of hooks enables the creation of new market structures and functionality. This automated market maker model relies on a constant-product rule where the product of the two token reserves must remain constant during trades. Hayden Adams, a former mechanical engineer at Siemens, created Uniswap in November 2018 after being inspired by a blog post from Vitalik Buterin. In version 2, liquidity providers received a percentage of the trading fees earned for their trading pair. In version 4, hooks allow for more granular control over how these fees are handled.
The Uniswap Foundation, which Devin Walsh and Ken Ng established in 2022, manages community governance and protocol development while allowing UNI token holders to vote on all major upgrades. Governance resides with UNI holders, who vote on protocol upgrades and fee structures. In December 2025, the community approved the UNIfication proposal to enable protocol fees and a deflationary mechanism tied to protocol revenue. This proposal shifted Uniswap v2 pool fees from 0.30% to a 0.25% liquidity-provider fee plus a 0.05% protocol fee. The proposal also included a one-time burn of 100 million UNI from the treasury after a timelock period. The timelock period required for the 100 million UNI burn prevents the immediate release of these funds. The UNI token allows holders to propose and vote on changes to fee structures or protocol upgrades.
| Component | Specification |
|---|---|
| v2 LP Fee Shift | 0.30% to 0.25% |
| v2 Protocol Fee | 0.05% |
| UNI Treasury Burn | 100 million UNI |
| v4 Creation Cost | 99.99% reduction |
| v4 Security Review | $2.35 million |
The v4 codebase underwent rigorous review, including a $2.35 million security competition run by Uniswap Labs, the Uniswap Foundation, Certora, and Cantina. Developers create custom logic through hooks to define how pools, swaps, fees, and liquidity provider positions interact. This extensibility allows for the creation of entirely new asset types and market structures. You should realize that the programmability of hooks adds layers of complexity to the interaction between liquidity providers and the automated market maker. The community continues to submit pull requests to refine the code. The Uniswap Foundation facilitates communication among contributors and development of the Uniswap Protocol. Because v4 uses a singleton pool model and flash accounting, it differs significantly from the concentrated liquidity model of v3. In v3, liquidity provider positions represented ERC-721 NFTs, but in v4, the PositionManager uses ERC-6909 for internal accounting. The protocol follows the ERC-20 standard on the Ethereum blockchain to maintain compatibility with many decentralized applications. Will the proliferation of custom hooks complicate the long-term security of the singleton pool architecture? The protocol uses liquidity pools to fulfill orders, which avoids the need for a traditional market maker. Liquidity providers in version 2 received a percentage of the trading fees earned for their specific trading pair. In version 4, hooks allow for more granular control over how these fees are handled. Individuals and bots, known as liquidity providers, add a pair of tokens to a smart contract to enable trading for other users. This process allows users to swap tokens directly from their wallets without relying on centralized exchanges.
Join the discussion