🎬 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.
| Contract | Address | Explorer Link |
|---|---|---|
| StratosHook | 0xD5ff7D5d38fa25cC3e468B08d2995797761060c4 |
View on Uniscan |
| TokenFactory | 0xFe531B397dd78Bf5a61Fe41bA701B5a8DA93ece9 |
View on Uniscan |
| PoolManager | 0x00b036b58a818b1bc34d502d3fe730db729e62ac |
View on Uniscan |
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?
- 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.
- 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.
- Community Participation: Token projects require more tools in order to gamify and incentivize participation beyond mere yield farming.
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
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
Follow these steps to get the project running on your local machine.
git clone https://github.com/KPR-V/Hooks-contracts.git
cd Hooks-contractsInstall dependencies and compile the contracts:
forge install
forge buildNavigate to the UI directory and install dependencies:
cd ui
npm installCreate a .env.local file in the ui directory:
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your_project_id_hereStart the development server:
npm run devOpen http://localhost:3000 in your browser to see the StratosHook Dashboard.
Made with ❤️ for the Hookathon.