Skip to content

KPR-V/Hooks-contracts

Repository files navigation

StratosHook 🦄

License: MIT Build Status Version PRs Welcome Maintenance GitHub issues GitHub stars GitHub forks GitHub contributors Uniswap v4 Unichain Foundry Next.js

StratosHook Logo

🎬 LIVE DEMO | 📹 VIDEO WALKTHROUGH

StratosHook, is an advanced hook with the functionality for dynamic fees and NFT-gated trading pools. It harnesses the strength of Uniswap’s v4 hook functionality and empowers traders on the Unichain network to form exclusive communities with loyalty incentives.

Report Bug Request Feature

🔗 Deployed Contracts (Unichain Sepolia)

Contract Address Explorer Link
StratosHook 0xD5ff7D5d38fa25cC3e468B08d2995797761060c4 View on Uniscan
TokenFactory 0xFe531B397dd78Bf5a61Fe41bA701B5a8DA93ece9 View on Uniscan
PoolManager 0x00b036b58a818b1bc34d502d3fe730db729e62ac View on Uniscan

💡 Problem / Background

What inspired the idea? I found that, in the traditional AMM landscape, liquidity pools are quite rigid: fees are static, and there's no native way to distinguish between a loyal community member and an arbitrage bot. I saw that creators launching tokens often struggle to provide tangible utility to their NFT holders within the trading experience itself.

**What problems is it solving?

  1. Static Fee Models: Normal pools do not adapt to the user. I wanted a mechanism to help me reward long-term holders with lower fees or even just providing access to an exclusively select few.
  2. Lack of Native Gating: Onboarding a "members-only" trading experience has generally required complex off-chain infrastructure to support. I built StratosHook to bring this logic completely on-chain.
  3. Community Participation: Token projects require more tools in order to gamify and incentivize participation beyond mere yield farming.

🚀 Impact

What makes this project unique?

I created StratosHook to democratize advanced financial engineering. It gives any pool creator the ability to deploy a "smart" pool that recognizes its users. I see it not just as a trading venue but more so as a loyalty engine.

What impact will this make?

  • For Traders: I want to be able to give them reduced costs for active community and NFT holders.
  • For Creators: I give them a new primitive to actually build token utility. An NFT is no longer just a JPEG, but a discount card and an access key to liquidity.
  • For DeFi: This project is again illustrating a strong potential of Unichain and Uniswap v4 in realizing complex, logic-heavy transactions in an effective manner

⚔️ Challenges

What was challenging about building this project?

  • 1 The first most challenge was to choose from these 2 options - include more features just for the sake of name or include only those features which create a meaning

  • 2 the second challenge i faced was related to return swap delta hooks and their complexity of the unspecified currencies

💻 Local Setup & Development

Follow these steps to get the project running on your local machine.

Prerequisites

1. Clone the Repository

git clone https://github.com/KPR-V/Hooks-contracts.git
cd Hooks-contracts

2. Smart Contracts Setup

Install dependencies and compile the contracts:

forge install
forge build

3. Frontend Setup

Navigate to the UI directory and install dependencies:

cd ui
npm install

4. Environment Configuration

Create a .env.local file in the ui directory:

NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your_project_id_here

5. Run the Application

Start the development server:

npm run dev

Open http://localhost:3000 in your browser to see the StratosHook Dashboard.


Made with ❤️ for the Hookathon.

About

A Dynamic fee hook with NFT gating and Hook revenue

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors