Results for ""
DeFi

What You Need to Know About Uniswap v4

Unpacking the headline features of Uniswap's next release
Ben Giove Ben Giove Jun 13, 20234 min read
0
0
What You Need to Know About Uniswap v4

Dear Bankless Nation,

It's been a trying June for the Web3 world, but crypto's builders won't stop shipping.

Today, we dig into an exciting announcement from Uniswap – the reveal of Uniswap v4. We chat with founder Hayden Adams and dig into all of the headline feature updates to this upcoming major release.

- Bankless team


Bankless Writer: Ben Giove

The wait is over. Bankless has the details on what’s next for Uniswap with the announcement of Uniswap v4 – the fourth iteration of the decentralized exchange.

Uniswap v3, which was released back in May 2021, was a game-changer, as it introduced concentrated liquidity, (where liquidity can be provisioned over a specific price-range) leading to a massive improvement to the DEX's capital efficiency.

This helped Uniswap maintain its spot as DeFi’s largest DEX, with the protocol currently having a 57.4% share of on-chain trading volumes, more than 3x that of its next largest competitor.

Will v4 have a similar impact? We had Uniswap founder Hayden Adams on the podcast to try to answer this question and talk us through all things v4.

👇 Here’s what you need to know about Uniswap v4 👇


A Breakdown Of Uniswap v4

Hooks

The defining feature of Uniswap v4 is hooks. Hooks are pieces of code that run at a certain point in the life cycle of a pool – whether it be upon its creation, after LPs add/remove their liquidity to a pool, or before/after a swap. Hooks are significant because they enable a far greater degree of pool customization than the previous iterations of Uniswap.

For instance, hooks can be used to create pools with dynamic swap fees that change based on market-conditions, rather than one that is pre-set and static.

Hooks also enable traders to place more complex orders such as limit orders, or TWAP (Time-weighted average price) orders which buy/sell a quantity of a token over a given period of time.

Furthermore, hooks can allow Uniswap liquidity to be used in different ways. Similar to Balancer’s boosted pools, a pool’s out-of-range liquidity can be deposited into other protocols, such as lenders, in order to earn additional yield.

These examples are only the ones thought up by the Uniswap team. Anyone can build and deploy their own hooks without permission.

'The Singleton'

The second big change brought about by Uniswap v4 is the introduction of the singleton. As its name suggests, the singleton is a single contract that contains all of the different pools within Uniswap v4. This is different from the previous iterations of Uniswap, where each pool was held within its own, isolated contracts.

This model significantly improves v4’s gas efficiency, as complex swaps will be routed through a single contract, rather than multiple different ones, which is highly gas intensive. The use of the singleton is also estimated to reduce the cost of deploying a new pool (i.e. a new trading pair) by as much as 99%.

The singleton also utilizes what Uniswap Labs calls a “flash accounting system.” This will further reduce gas cost when trading on the DEX by only transferring the net balance of tokens out of a pool upon completion of a swap. This is different from Uniswap v3, where all of the assets involved in a trade are transferred in/out of a pool during the swap process.

Governance, Release, and Distribution

Uniswap v4 will be governed by the Uniswap DAO and UNI holders.

Like v3 and v2 before it, the protocol will include a fee-switch, which Uniswap governance can activate on a pool-by-pool basis to take a cut of the fees generated by liquidity providers.

v4 will be released under a Business Source License 1.1, which will last for four years and will limit the use of the protocol to governance-approved entities.

Finally, it’s also worth noting that the release of Uniswap v4 is not imminent. Per Hayden on the podcast, the v4 code is not yet finalized and audited, so it should be sometime before the protocol is released out into the wild.

What This Means for DeFi

v4 will have widespread implications for Uniswap itself, and DeFi as a whole.

For starters, the upgrade should help Uniswap retain its place as the largest decentralized exchange by trading volumes, as hooks can improve the protocol's capital efficiency relative to v3 while being far more customizable and gas efficient. These latter two qualities should help Uniswap capture more order flow from DEX aggregators and longer-tail exotic trading pairs while maintaining its dominance among higher volume ones such as ETH/USDC, ETH/USDT, ETH/DAI and others.

In addition, the ability to create more order types, such as TWAPs and limit orders, should help Uniswap become more competitive with centralized exchanges by attracting more sophisticated traders to the DEX. This, coupled with the broader structural tailwinds for trading activity moving on-chain following the collapse of FTX and the recent regulatory pressure being applied to CEXs like Binance and Coinbase could help Uniswap more seriously challenge these competitors.

The DEX/CEX volume ratio reached an all-time high in May before coming down. At maturity, Uniswap v4 appears to have a good shot at pushing that ratio to new heights.

Finally, v4 should help make Uniswap a more composable protocol. Uniswap v3 was notoriously difficult to build on top of due to its lack of expressivity and the challenges of managing concentrated liquidity positions. Between hooks and the singleton, it seems that it will be easier to build on and utilize v4 liquidity relative to v3. This could usher in a flood of new, interesting applications and spur a wave of creativity in DeFi at a time when the industry desperately needs it.

All in all, Uniswap v4 should help push the space forward and is an exciting new level-up for DeFi. Yes, it won’t ship for some time. But DeFi is nonetheless about to get fun again.

Action Steps:

Ben Giove

Written by Ben Giove

95 Articles View all      

Former Senior Analyst at Bankless.

No Responses