Tell me what your pool should do, in your own words. I'll write the Uniswap V4 hook.
Or start from one of these:
Settings
Change anything; the code updates as you type.SwapFeeHook.sol
Deploy on Robinhood Chain
-
Connect your wallet
MetaMask, Phantom or any browser wallet. You'll need a little ETH on Robinhood Chain for gas.
-
Deploy the hook
Compiles in your browser, finds an address with the right permission bits, then asks for one signature.
-
Create the pool
Pick the pair and a starting price. The pool goes live on Uniswap V4 with your hook.
-
Add liquidity
Deposit both tokens so people can trade. You keep the position and earn the pool's fees.
Not audited, and this is mainnet with real money. Read the code, start with small amounts, and have the hook reviewed before it holds real funds.
Prefer to deploy with Foundry?
- Make a project:
forge init my-hook && cd my-hook - Add Uniswap V4:
forge install uniswap/v4-peripheryand the remappings@uniswap/v4-core/=lib/v4-periphery/lib/v4-core/,@uniswap/v4-periphery/=lib/v4-periphery/ - Save the hook as
src/SwapFeeHook.soland the deploy script asscript/DeploySwapFeeHook.s.sol, withevm_version = "cancun"infoundry.toml - Run the command at the top of the deploy script with
POOL_MANAGER=
What this hook does
- Uses
- Address must end in
- Pool fee