Bankless:What You Need to Know About Uniswap V4

Bankless发布于2023-06-14更新于2023-06-14

文章摘要

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.

你可能也喜欢

如何让自己变得让人工智能永远也无法取代

面对人工智能的冲击,许多人担心工作被取代。然而,真正的威胁在于个人对他人和系统的依赖,以及由此产生的“薪资奴役”——即为生存而从事无意义、枯燥的工作。摆脱这种困境的关键,不是抵制技术,而是成为拥有高自主性的“不可受雇”个体。 文章提出了成功抵御AI替代的五个核心要素:自主性(主动行动的能力)、品味(判断事物价值的经验)、说服力(让他人关注你工作的能力)、毅力(坚持并从错误中学习)和迭代(根据反馈持续改进)。这些能力无法仅通过理论学习获得,必须通过实践来培养。 要启动转变,首先要彻底改变环境,重塑身份认同。其次,应选择一个能获得真实、快速反馈的实践领域,例如创业。在众多技能中,内容创作(媒体)比编写代码更具优势,因为其价值是主观的,需要独特的审美和判断力,这正是AI目前难以完全复制的。 具体行动上,可以从三个步骤开始: 1. **挖掘原始素材**:反思自己长期痴迷的知识领域、轻松解决的难题或童年被压抑的兴趣,找到独特的个人经验。 2. **确立反向思考主轴**:找出你坚信但主流观点错误的地方,或行业内普遍忽视的“皇帝新衣”,形成独特的批判性视角。 3. **立即发布**:将前两步的思考融合,撰写并发布第一个核心内容(如帖子、视频),勇敢接受真实世界的反馈,并在此基础上持续学习和迭代。 最终,抵御AI的关键在于构建一份与自身身份深度契合的毕生事业,通过持续的内容创作和真实互动,建立无法被自动化取代的独特价值和影响力。行动,从今天发布第一个想法开始。

marsbit1小时前

如何让自己变得让人工智能永远也无法取代

marsbit1小时前

通过掷骰子离线保管比特币密钥:并非人人愿意为之

文章探讨了通过投掷骰子生成比特币钱包种子短语的安全方法及其现实挑战。核心观点如下: **1. 骰子提供物理熵源** 骰子结果由众多微小变量决定,理论上虽可预测,但实践中无法被攻击者复制或计算,从而提供高质量的随机性。每个六面骰子投掷约产生2.585比特熵,50次投掷即可满足典型12词助记词(128比特熵)的安全需求。 **2. Coldcard漏洞事件凸显手工熵源的价值** 近期Coldcard硬件钱包因固件漏洞导致其内部随机数生成器存在缺陷,致使约1128枚比特币被盗。但那些**完全**通过足量骰子投掷生成种子短语的用户未受此漏洞影响,因为他们的主密钥未使用有缺陷的生成器。 **3. 重要警示:手工种子并非万能保护** 安全研究员指出,即使用户使用骰子生成了安全的种子,若他们使用了Coldcard的其他功能(如生成纸钱包、克隆密钥、共享签名密钥、密码等),这些**衍生密钥**仍可能调用有漏洞的随机数生成器,从而存在风险。安全种子不保证设备生成的所有秘密都安全。 **4. 手工生成熵源的现实局限性** 尽管数学上可靠,但该方法对大多数用户并不友好: * **过程繁琐易错**:需投掷50-99次,精确记录,任何输入错误都会导致钱包完全不同。 * **引入新风险**:用户可能在记录、转换过程中泄露信息,或使用有偏的骰子/投掷方式。 * **用户体验差**:难以想象大规模推广需要用户手动投掷近百次骰子。安全措施需适应现实生活场景和普通用户的知识水平。 **5. 给用户的建议** 受影响的Coldcard用户应: * 更新固件至最新版。 * 检查是否使用过有漏洞的功能生成了次级密钥或密码,如有则需立即更换。 * 考虑采用多签方案,使用不同厂商的设备分散风险。 **结论**:手工投掷骰子生成熵源是技术娴熟用户的一个有效安全选项,但其过程复杂、容易出错,不适合作为主流用户的默认方法。长远目标是依赖安全、透明且无需专业知识的硬件/软件随机数生成方案。

cryptonews.ru4小时前

通过掷骰子离线保管比特币密钥:并非人人愿意为之

cryptonews.ru4小时前

交易

现货
活动图片