PermitPool

Non-transferable trading licenses for institutional DeFi using ENS fuses + Uniswap v4 hooks

PermitPool

Created At

HackMoney 2026

Project Description

PermitPool is the first decentralized "Identity Clearing Layer" designed to unlock the $1.5 Trillion institutional market for DeFi.

Currently, hedge funds and institutions cannot trade in permissionless pools because they cannot risk interacting with sanctioned addresses or anonymous actors. Traditional "whitelist" solutions are centralized, slow, and prone to database hacks.

PermitPool solves this by moving compliance entirely on-chain. We utilize the ENS Name Wrapper to issue "Soulbound Licenses" (subdomains) to traders. We then use Uniswap v4 Hooks to enforce these licenses atomically before every trade.

The result is a "Permissioned Pool on a Public Protocol."

For the Fund: A mathematically proven way to control employee access and prevent license transfers.

For the Trader: A "Stealth Terminal" experience that unlocks only when their on-chain identity is verified.

For the Ecosystem: A scalable, trustless architecture that proves compliance does not require centralization.

We are not just building a DEX; we are building the compliance infrastructure that allows RWA (Real World Assets) and Institutional Liquidity to flow safely into Ethereum.

How it's Made

his project was built using a "Trinity Architecture" combining ENS (Identity), Uniswap v4 (Execution), and Yellow Network Logic (Clearing).

  1. The Identity Layer (ENS Name Wrapper): Instead of a database, we use the ENS V3 Registry as our source of truth. We deployed a LicenseManager contract that mints subdomains (e.g., trader.fund.eth) to users.

The Hacky Part: We utilize ENS Fuses (specifically CANNOT_TRANSFER and PARENT_CANNOT_CONTROL) to turn a standard ENS name into a "Sovereign License." This ensures that the license is non-transferable (soulbound) and cannot be arbitrarily revoked by the issuer during a trade, creating a trustless compliance standard.

  1. The Execution Layer (Uniswap v4 Hooks): We built a custom hook (PermitPoolHook.sol) that implements the beforeSwap callback.

When a user attempts to trade, the hook intercepts the transaction.

It queries the ENS Registry to verify if the msg.sender owns a valid, fused subdomain node.

If the check fails, the transaction reverts. This brings "Yellow" clearing logic (pre-trade validation) directly into the swap lifecycle.

  1. The Stealth Interface (Frontend): The frontend is built with Next.js and Wagmi/Viem. We implemented a "Stealth Mode" UX. The app reads the user's ENS fuses in real-time. If the user is unlicensed, they see a gamified "New Employee Guide." Once the license is detected on-chain, the UI dynamically transforms into a professional "Dark Mode" trading terminal.

Technologies Used: Solidity, Foundry, Uniswap v4 (Periphery & Core), ENS Name Wrapper, Next.js, RainbowKit, Viem.

background image mobile

Join the mailing list

Get the latest news and updates