Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
awesome-uniswap-hooks
A curated list of awesome Uniswap v4 hooks resources.
https://github.com/ora-io/awesome-uniswap-hooks
Last synced: 6 days ago
JSON representation
-
π Examples
-
From Community
- New York Trading Hours
- Impermanent Loss Hedge (Antonio Furtado)
- Stop Loss Order
- On-Chain Take Profit Order - chain "take-profit" orders. This means that the position will be automatically closed if the price reaches a certain level.
- Hyperlane LPTs
- Torres Token Sale
- NFT Owners Only
- Curve Style Voting Escrow - veLP - style voting escrow (ve) hook. This can be used to create a more democratic and efficient way to vote on changes to a liquidity pool.
- Huff Hooks
- Uni LBP - efficient Uniswap v4 liquidity bootstrapping pool (LBP) hooks contract. This can be used to allow tokens to be sold at a linearly decreasing price.
- UniKits Hooks
- Automated Buyback
- Privacy Enhancing Hook - chain link between depositors and withdrawal addresses, while also providing a verifiable proof of inclusion.
- Minimize LVR Hook - versus-rebalancing. This can reduce LVR and increase LP returns.
- Bungi - core/blob/main/contracts/test/PoolModifyPositionTest.sol).
- Captain Hooks
- WID KYC
- Volatility Fee Hook
- Ref Fee Hook
- Identity with Civic
- Attestation Hook
- Constant-sum Swap - sum swaps (x + y = k), allowing for an exact 1:1 swap everytime.
- Violet Hooks
- WBTC Hook - 01-10.
- v2 on v4
- Magna Carta - running and other types of manipulation.
- Liquidity Provider Fee Rebate
- Base v4 Hook - like liquidity logic.
- Automated Buyback
- Privacy Enhancing Hook - chain link between depositors and withdrawal addresses, while also providing a verifiable proof of inclusion.
- Multi-Sig
- Whitelist - risk traders.
- Dynamic Fee Hook
- Anti-KYC - ed users. This can be used to provide alternative liquidity pools for users who do not want to go through KYC.
- Multi-Sig
- Old Account
- KYC
- Locking Liquidity Hook - liquidity-hook-for-univ4-builders-perspective-44e192eefe1f).
- Dynamic Fee Hook
-
From Hackathon
- Hookathon C1
- Vortex Protocol
- DiamondX
- V4-orderbook - based orderbook.
- FlexFee
- Squared
- AutoMate - chain tasks.
- Oolong.xyz - rebalancing.
- Ampli - custodial margin protocol with protocol provided liquidity built on top of Uniswap v4.
- UniCast - look event hook for LSTs and yield-bearing tokens.
- Advanced Orders
- Timelock Addition to the Points Loyalty Repo - down Incentivized Liquidity using a beforeRemoveLiquidity hook to ensure sufficient time has passed.
- StableSwap - liked AMM.
- Concentrated Incentives Hook
- LBP Hook
- Auto Compound
- Degen Options
- LiquidityLock
- Liquidity Mining on V4
- LiquidityLock
- Fidelity Hook
- Lumis - based options & Liquidity-as-a-service.
- LoyalSwap
- FairLaunchoor
- Dortfolio
- UniMarket
- Levery
- Mev Auction Hook
- Internal Swap Pool Hook
- Liquidity Bet Hook
- Simple LP Rebalancer
- Trailing Hook
- Realized Volatility Based Dynamic Fee Hook
- Auction-managed perpetual options
- Catapoolt
- Fungi Hook
- TokenTown - 7a1hp)): A Monopoly-inspired, onchain board game where in-game properties are purchased with a stepwise price via a custom-curve v4 pool.
- 0xEstate - gmqr0)): A marketplace that leverages v4 hooks to provide liquidity to fractional real estate. Hooks enabled constraints for purchases of onchain assets.
- Royalty Swap - swap-n8y1i)): A hook to provide discounted swap fees for high volume traders
- FairArbooors - uq81v)): SUAVE auctions for the right to perform top-of-block swaps, with auction proceeds being donated to LPs.
- Median Price Oracle
- Impermanent Loss Hedge (Makemake)
- Hedge
- ETHGlobal London 2024
- Perks
- NYCV4Hermit - Hook-LAB)): Three libraries of tooling developed for Liquidity Sniping (Liquidity Snipping Blocking Hook), V4 Math, and a V4 Quoter Library.
- SUClave - ethglobal-istanbul/)): A hook that controls initial swap access. This democratizes MEV and ensures equitable swap opportunities in liquidity pools.
- Toxic Fl-no - fl-no)): A dynamic fee hook, rewarding valuable participants in the ecosystem by adjusting Uniswap pool fees based on user behavior within a Suave contract, promoting equitability.
- Protecc
- ETHGlobal New York 2023
- Fair Trade - trade-nyc-mb)): A Uniswap v4 pool that launches tokens with safety guarantees for future token holders and traders. Designed to be a hook to be added to pools to protect against shit-coin ruggings.
- NFT Pool Party
- Trading Hours
- Dynamic Fee
- ETHOnline 2023
- Aggeragator Hook - Hook)): A hook enables LPs in other DEXes to optimize their Uniswap V4 positions, streamlining liquidity management. It facilitates JIT activation for profitable ranges.
- Delegated Liquidity - liquidity)): Empowers token delegates to vote on governance proposals without missing out on providing liquidity.
- MEVictim Rebate
- ETHGlobal Brussels 2024
- Malbec Finance
- LaunchFi
- All my π¦ Read on L1 - chain arbitrage (LVR) on Scroll pools.
- HookRank
- X-DataAggregator
- Liquid Delegation - sharing with wrapped-ARB liquidity providers.
- liqu1tent - chain swaps w/ ERC-7683 settlement contract & solver. Experimented with bytes32 accounts & compatibility with non-EVM chains.
- Cook Some Hooks - style hook generator using LLMs to produce compiling and deployed hooks.
- IntegrumSwap - chain exchange using NoOp hooks for asynchronous RFQ swap fulfillment, with fallbacks to v4 liquidity.
- EthCC Paris Hookathon 2023
- The Incredible Hook - incredible-hook)): A hook that enables user to get their transaction sponsored in exchange for a discount on swap fees for the sponsor, a win-win deal.
- Dynamic AMM Fees
- ETHGlobal Istanbul 2023
- UniV4 CCLP Hook
- Arb Controller - controller-ETHNYC)): A Uniswap v4 hook that sets dynamic fee for a pool based on the price movements. The dynamic fee partially discriminates informed order flow from arbitrageurs.
- ReCentFi - powered platform to reward eco-friendly action. Users pick up trash, upload videos for verification, and gain exclusive access to βcleanβ Uniswap pools with verification gated hooks added to them.
- Axiom LP Mgmt - axiom-rebalancing/)): A Uniswap v4 hook and position manager to enable trustless LP modification with Axiom. Modifies positions on Uniswap pools automatically so that LPs can passively make better returns.
- TimeConcentrate
- Lime - offchain-pricing)): An active Uniswap V4 hook manager which allows fillers or market makers to set price and fill Intent / RFQ based swap requests.
- Apeful - ethglobal-london)): A hook that enables user incentives on Uniswap V4 pools by automatically generating AI-based NFTs when the user does specific action with ApeCoins, everything completely onchain.
- SuckerPunch
- am-AMM hook - managed AMM that enhance price discovery, reduce impermanent loss, and offer more liquidity in equilibrium than any standard, fixed-fee AMM.
- HOOK Finance - finance/hook-finance-hook)) : A hook that enables perpetual trading as a Uniswap V4 Hook! An innovative way to introduce perpetual markets to V4.
- Orderbook Hook - 2.0-contracts/tree/main/contracts/uniswapv4)): A Uniswap v4 hook blending the immediacy of AMM systems with the detail-oriented nature of orderbooks.
- 0xY - hack-fe)): Borrowing protocol offering put-protected term loans that protect against price liquidation. A Uniswap V4 pool implements custom hooks that lends to the protocol whenever the price moves out of range for a user's LP.
-
From Uniswap
- Volatility Oracle
- Truncated Oracle - v4-truncated-oracle-hook).
- Geomean Oracle
- Limit Order
- Full Range
- Geomean Oracle
- Limit Order
- TWAMM - weighted averages to calculate the prices of assets. This can be used to reduce the volatility of the market and to provide more accurate prices for assets. See also [Uniswap's research blog post on TWAMM](https://blog.uniswap.org/v4-twamm-hook).
- Volatility Oracle
- Full Range
- Geomean Oracle
- Limit Order
- Volatility Oracle
- TWAMM - weighted averages to calculate the prices of assets. This can be used to reduce the volatility of the market and to provide more accurate prices for assets. See also [Uniswap's research blog post on TWAMM](https://blog.uniswap.org/v4-twamm-hook).
- Full Range
-
-
π Tools
-
π Templates
-
From Hackathon
- Uniswap Foundation's Template
- SolidityLabs' Template - based template for developing custom pool in Uniswap v4 with hooks.
- Arrakis' Playground - based application that allows you to interact with hooks. You can use this playground to test your own hooks or to learn more about how hooks work. This playground can be used to test the functionality of your hooks by simulating swaps.
- Lucas Martin Calderon's Template
- Nick Addison's Template
- Quantum3 Labs's Scaffold
- Gnome101's Hardhat Template
-
-
π Tutorials
-
From Hackathon
- Captain Hook: Uniswap Hooks Tutorial
- Uniswap Foundation: v4 by Example
- James Bachini: Introduction to Hooks
- Umbrella Research: A Deep Dive With Captain Hook (I) - based features within the Uniswap v4 protocol.
- Captain Hook: Uniswap Hooks Tutorial
- Umbrella Research: Uniswap v4 Hooks Guide (II) Dynamic Fees Hook
- Rahat: Exploring Hooks on Uniswap V4 - Developer Relations Engineer at Uniswap.
- Saucepoint: Getting Started with the `v4-template` - by-step guide to using the `v4-template` to create a custom hook, with testing and trouble-shooting tips.
- LearnWeb3: On-chain "take-profit" orders hook - profit' positions, exemplified by the scenario where a user in an ETH/DAI pool can set an automatic order to sell all their ETH when the price reaches a determined price.
- Solidity Developer: Integrate Uniswap v4 and create a custom hook
-
-
πΏ Videos
-
From Hackathon
- Uniswap v4: Hooks, Singletons and Controversy (Blockcast) - minute video exploring v4 including a discussion of hooks starting at [1:21](https://youtu.be/cu5S87U2dXs?si=7TaaqhjZ4WmpOjb_&t=81).
- Uniswap V4 Deep Dive with Head of Protocols Sara Reynolds (The Defiant) - minute video discussing v4 including an overview of hooks and attack vectors starting at [4:30](https://www.youtube.com/live/6e8n_GedrMY?si=l5lSMSUOvZ54w4HP&t=270).
- Hayden Adams on what makes v4 special (Unchained Podcast) - minute video highlighting v4 including an explanation of hooks, their most common uses, and security concerns starting at [21:05](https://youtu.be/KNK-W8JDuWg?si=a4RIqonO1Bj-DpCf&t=1265).
- Hayden Adams announcing the release of Uniswap V4 (Bankless) - minute video covering the release of Uniswap v4, including the hook centric roadmap at [43:29](https://youtu.be/ZmhdNiGOMRU?si=Txqbp0wLnU8gdQn4&t=2609).
-
-
π€ Introduction
- Uniswap's v4 Announcement
- Uniswap v4 Developer Documents
- Technical Whitepaper for Uniswap v4 Core
- Draft Technical Whitepaper for Uniswap v4 Core
- Core smart contracts of Uniswap v4 - core`'s singleton-style architecture, the management of all pool state in `PoolManager.sol`, and use of hook contracts to implement callbacks in the lifecycle of pool actions.
- Peripheral smart contracts for interacting with Uniswap v4 - periphery` hosts the logic that builds on top of the core pool logic like hook contracts, position managers, and even possibly libraries needed for integrations. It is still under development and is being updated as the v4 ecosystem matures. Includes the `BaseHook` contract that can be used as a base for creating custom hooks.
-
π‘ Articles
-
From Hackthon
- Thorns in the Rose: Exploring Security Risks in Uniswap v4's Novel Hook Mechanism - uniswap-hooks/commit/3a0a444922f26605ec27a41929f3ced924af6075) may be vulnerable to attacks.
- Lethal Integration: Vulnerabilities in Hooks Due to Risky Interactions
-
From Hackathon
- Threats for UniswapV4 hooks
- Uniswap V4: Re-Initialization Leading to Funds Locked - Initialization Leading to Funds Locked".
- Uniswap V4: Liquidity Theft via Hook Fee
- Uniswap V4: Oracle hook with malicious owner
- UniswapV4: Further research to improve hooks security
- A Saga of Hooks, Bidding Farewell to Fork Swap
- Threat modeling for secure integration
- SharkTeam's Best Security Practices for UniswapV4 Hooks
- Community Contributions to Uniswap v4
- Uniswap V4: Exploring Hooks, KYC, and Enhanced Features
-
-
π Thanks
-
π‘ Creative Ideas
-
From Hackathon
- Loss Versus Rebalancing Minimization - domain MEV sources within the DEX ecosystem, specifically on loss-versus-rebalancing (LVR).
- Oracleless Lending Protocol - free operations, and enhanced earnings for liquidity providers.
- Torando Cash on Hooks - like system, utilizing all of Uniswap's liquidity as its pool.
- Hook Safety as a Service
- Gasless Swaps - toxic MEV executer with gasless swaps.
- Hook to Facilitate Keeper Activity
- What bad hooks look like
- UniBrain Hook
- Tips to make pool aggregator/searcher-friendly - friendly, to attract more volume from aggregators/searchers.
- Value accrual designs for hook developers
- auction-managed AMM - managed AMM that shows the design space of v4.
- Sandwich-resistant Hook - resistant Uniswap v4 hook based on "A SANDWICH-RESISTANT AMM" from Umbra Research.
- The Null Fee Idea
- Doppler - bootstrapping hook design on top of Uniswap v4.
-
-
π See Also
-
From Hackathon
- Uniswap v4: A New Era For Defi - - highlighting hooks' ability to attract liquidity, design new interfaces, and bridge DeFi into the mainstream.
- Contribution Guidelines for Uniswap v4 Core
- The Uniswap Hook Incubator - week program to help advanced DeFi devs build hooks.
-
Programming Languages
Categories
Sub Categories