Skip to content

adam0x7/nft-amm-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating An NFT AMM As A Uniswap Hook 🦄🖼️

Full Article: https://mirror.xyz/0x0e729b11661B3f1C1E829AAdF764D5C3295e1256/u1JYJ6_XWf-bgyQIZjHYsC22WgArKCRJxk8pf37am3Y
# Install dependencies using Forge
forge install

# Build the project specifying the EVM version and IR generation
forge build --evm-version cancun --via-ir

Overview 🌐

The NFTAMMHook is a Uniswap V4 Hook that is a POC for creating an NFT AMM using the afterSwap hook.

Key Features 🌟

  • Market Making for NFTs 📈: Users can create orders to buy and sell NFTs at specified price points, adjusting the prices dynamically based on a predefined delta. These market makers create immediate liquidity for the NFT on the buy and sell sides of the NFT collection.
  • Bonding Curve Pricing 📊: Implements a bonding curve for price determination, where the price adjusts according to a set delta percentage as more NFTs are bought or sold. This allows market makers to buy low / sell high
  • Integration with Uniswap V4 Hooks 🔗: Utilizes the after swap hooks to transfer our NFT, influenced by whether or not we are making a zeroForOne trade.
  • Wrapped NFTs (wNFTs) 🎁: Supports the concept of wrapped NFTs, where NFTs are wrapped into a fungible token format to facilitate easier trading and liquidity provision.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published