Bankless:What You Need to Know About Uniswap V4

BanklessPublicado a 2023-06-14Actualizado a 2023-06-14

Resumen

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.

Unpacking Uniswap V4

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.

Lecturas Relacionadas

In Conversation with Ray Dalio: We Are Currently in an AI Bubble, with 1% of My Portfolio in Bitcoin

Ray Dalio, founder of Bridgewater Associates, warns in an interview that the current AI boom shows classic bubble characteristics, which could lead to significant economic downturns as seen in past cycles like 1929 or 2000. He explains that speculative enthusiasm, fueled by debt and overvaluation, often precedes a crash when rising rates or taxation force asset sales, causing widespread losses and recession. Dalio also outlines his "Big Cycle" theory, describing an approximate 80-year pattern where widening wealth gaps, massive government deficits, and shifting geopolitical power (like China's rise) create internal conflict and global instability. He emphasizes that we are in a late-cycle, transitional phase where traditional powers like the US and UK face decline. For personal wealth protection, Dalio advises diversification beyond cash into assets like stocks, bonds, real estate, and particularly gold, which he prefers over Bitcoin. While he holds about 1% of his portfolio in Bitcoin as a non-printable hard asset, he views gold as more secure from technological or governmental threats. Regarding AI's impact, Dalio believes it will disproportionately benefit capital owners, worsening inequality by replacing both physical and cognitive labor. He suggests that human intuition and emotional intelligence, combined with AI, will be key for future workers. On taxation, Dalio argues that wealth taxes are impractical and risk triggering asset sell-offs, reducing productive investment. He points to the UK as a cautionary example of debt, low productivity, and political strife. Geopolitically, Dalio foresees a more regionalized world, with the US showing weakness in prolonged conflicts like with Iran, akin to past imperial declines. The ideal outcome, he suggests, is coexisting powerful blocs (e.g., Americas, China-Asia Pacific) without major war.

marsbitHace 1 hora(s)

In Conversation with Ray Dalio: We Are Currently in an AI Bubble, with 1% of My Portfolio in Bitcoin

marsbitHace 1 hora(s)

Daily 7.2 Trillion KRW: Foreign Capital's Record Net Buying on Friday! Wall Street Says Headwinds for Korean Stock Fund Flows Have Subsided

South Korean stock market sees a dramatic shift in fund flows. On July 31, foreign investors made a record net purchase of approximately KRW 7.2 trillion in KOSPI stocks, marking a fundamental reversal from the persistent large-scale net outflows seen in previous months. This contributed to a significant narrowing of foreign net selling in July to KRW 9.8 trillion, down sharply from KRW 48.4 trillion in June and KRW 44.5 trillion in May. Simultaneously, domestic institutional pressure eased. South Korean pension funds and asset managers turned to a net buying position in July, purchasing KRW 1.0 trillion worth of KOSPI shares, contrasting with net sales in May and June. Market volatility is expected to be dampened by new financial regulations. Effective July 31, the Financial Services Commission tightened access for retail investors to single-stock leveraged ETFs by raising the minimum cash deposit requirement. Trading volumes for these products subsequently dropped to about 50% of their monthly average. Citigroup Research maintains its year-end KOSPI target of 10,000 points. The firm cites several supportive factors: the substantial easing of headwinds from capital outflows, a robust fundamental outlook for the semiconductor sector, historically low market valuations, strong economic fundamentals, and the potential for policy support from financial authorities if needed.

marsbitHace 1 hora(s)

Daily 7.2 Trillion KRW: Foreign Capital's Record Net Buying on Friday! Wall Street Says Headwinds for Korean Stock Fund Flows Have Subsided

marsbitHace 1 hora(s)

Thanks to Dice Rolls, Bitcoin Keys Are Stored Offline, But Not Everyone Will Do It

The article discusses using dice rolls to generate secure Bitcoin wallet seeds, providing entropy independent of potentially flawed hardware random number generators. It explains that each fair dice roll offers about 2.585 bits of entropy, with around 50 rolls needed for a standard 12-word seed phrase and 99+ recommended for higher security. This method gained attention after a vulnerability was revealed in some Coldcard hardware wallets, where a faulty firmware RNG (dating back to 2021) compromised generated keys. The analysis notes that while a dice-generated main seed was safe from this specific flaw, other Coldcard functions (like creating paper wallets, backup keys, or passwords) could still be vulnerable if they used the defective RNG. The piece argues that while dice-based entropy is technically robust, the manual process is error-prone, tedious, and unrealistic for most new users, who might make mistakes in recording or inputting rolls. It concludes that while manual entropy generation should remain an option for advanced users, the long-term goal is to develop reliable, user-friendly hardware and software that securely generates randomness without requiring specialized knowledge. Coldcard users are advised to check their firmware version and replace any secondary secrets (like paper wallet keys) created with vulnerable devices, while also considering multi-signature setups with devices from different manufacturers for added security.

cryptonews.ruHace 6 hora(s)

Thanks to Dice Rolls, Bitcoin Keys Are Stored Offline, But Not Everyone Will Do It

cryptonews.ruHace 6 hora(s)

Trading

Spot
活动图片