Uniswap V4 的「钩子」有何真实用途?

深潮2025-05-15 tarihinde yayınlandı2025-05-15 tarihinde güncellendi

Hook 「钩子」诞生于 Uniswap,超越 Uniswap。

撰文:0xTodd

最近我存了一些钱在 Uniswap V4,所以认真地研究了一下 Uni 的钩子。很多人其实私下里跟我说过,说 Uni 推出 V4 后没有感受到 V3 上线时那种惊艳感。主要是「钩子」本身这个概念就过于抽象,要直接背锅。

Hook 与其被直译为钩子,个人愚见,还不如意译为插件。钩子本身就是给池子增加一些超越 Uni 本身的功能。它的文档里连篇累牍地强调了在什么时间可以调用钩子,其实大多数人并不关心,还不如说一下钩子到底能干什么。

【钩子的用途举例】

  • 比如说,它可以让你建的池子,例如 ETH-USDT 仅限某些特定地址才能使用;

  • 又或者,它可以让你的池子在繁忙时多收手续费,在空闲时少收手续费;

  • 再或者,它甚至可以让你的池子可以不用 X*Y=K 这个曲线(PS :估计当时被 Curve 刺激到了)。

总而言之,你可以自由开发各种各样的你需要,而 Uni 官方可能永远不会推出的功能。

有点像 Steam 上的创意工坊,都是官方不再做了,让其他人自由创造的感觉。

还有一个变化是,过去 Uni 上盈利的生态位就两个,LP 和交易者,而且两者是互相掏对方兜儿。V4 之后有钩子了,其实是让一些脚本小子也有盈利位了。

你写一个钩子,别人建池子的时候可以付费使用你的钩子(卖.. 钩.. 子?)。每个池子可以用 1 个钩子插件,但是 1 套钩子插件可以给无数个池子订阅,边际成本相当低。有个网站叫 Hook Rank 里面收录了几百个钩子,能看到各种钩子赚到了多少钱。目前大家最常用的一个钩子之一 Flaunch,我看开发者已经赚到了 100 多万美金了。

它是干嘛的呢?用它的钩子,可以让你在给 meme 币创建池子的时候,把这个池子的手续费任意比例,例如 80% 指向给自己的钱包,然后 20% 用于回购。

幸好川普儿子发 $Trump 的时候不知道有这个功能,不然他还不把所有费用都指向未来世界金融?

另外,俗话说,只有竞争对手最懂你,后面 Pancake 也果断引入了钩子,只不过不叫 V4 而是称之为 Pancake infinity,当然这是另外一个故事了有空再聊。总而言之,钩子还是挺有意思的一个东西,足以冠之以 V4 之名。

İlgili Okumalar

Dialogue with IOTA Foundation's Jens: From Kenya to the UK, TWIN Propels Global Trade into the '5-Minute' Era

**Summary: IOTA's TWIN Project is Speeding Up Global Trade** Jens Munch Lund-Nielsen, Head of Global Trade & Supply Chain at the IOTA Foundation, discusses how the TWIN (Trade and Logistics Information Network) project is addressing long-standing inefficiencies in global trade. Traditionally, cross-border trade involves numerous parties, extensive paperwork, and delays spanning weeks. TWIN, built on IOTA's decentralized, scalable, and low-cost infrastructure, aims to replace this fragmented, paper-based system with a real-time, trusted, and interconnected digital collaboration layer. As a neutral digital public infrastructure, TWIN allows governments, businesses, and ports to exchange verifiable data and documents without ceding control to a single entity. This solves a core coordination problem that previous, proprietary platforms failed to address due to a lack of trust and neutrality. Key real-world implementations include: * **TLIP in East Africa:** Reduced document retrieval times for flower, coffee, and tea exports from 6-7 hours to ~30 minutes, cutting administrative work by 50-60%. * **UK Ecosystem of Trust Trials:** Provided border agencies with much earlier visibility (up to 20+ hours) of incoming chilled poultry shipments from Poland, enabling better resource planning. * Other pilots focus on supply chain traceability for fruits/vegetables, port efficiency, and critical mineral sourcing. TWIN ensures interoperability across jurisdictions by adopting global standards (e.g., UN/CEFACT data models), leveraging decentralized identity systems (DIDs), and supporting legal frameworks like MLETR. Looking ahead, Jens is optimistic that a trusted "connective layer" like TWIN will scale in the coming years. Its success could fundamentally transform global trade, most notably by helping to close the current $2.5 trillion trade finance gap. By providing lenders with access to verifiable, real-time supply chain data, TWIN could unlock capital and reshape how businesses discover partners and secure financing.

marsbit20 dk önce

Dialogue with IOTA Foundation's Jens: From Kenya to the UK, TWIN Propels Global Trade into the '5-Minute' Era

marsbit20 dk önce

İşlemler

Spot
活动图片