Simple LP fee collection contract for Hoonicorn ($HOONI), the first V4 Unicorn on Unichain. Built for the pioneering Uniswap V4 LP position that kickstarted liquidity on Unichain.
HooniLocker uses Uniswap V4's novel command pattern to manage fee collection through zero-liquidity decrease operations. The contract enables secure, permissioned fee claims while maintaining position liquidity.
- UniswapV4 LP fee collection
- Whitelisted caller system
- Configurable fee recipient
- Locks the liquidity NFT forever
- Website: https://hoonicornerc20.eth.limo
- Telegram: https://t.me/HOONI_ERC20
- Twitter: https://x.com/HOONI_ERC20
- Trade: https://swap.hoonicornerc20.eth.limo
"Bringing Uniswap V4 to Unichain, one hoonicorn at a time 🦄"
Clone the repository and then run inside the project folder:
$ bun install # install Solhint, Prettier, and other Node.js deps
If this is your first time with Foundry, check out the installation instructions.
To write a new test contract, you start by importing Test
from forge-std
, and then you inherit it in your test
contract. Forge Std comes with a pre-instantiated cheatcodes environment
accessible via the vm
property. If you would like to view the logs in the terminal output, you can add the -vvv
flag
and use console.log.
This is a list of the most frequently needed commands.
Build the contracts:
$ forge build
Delete the build artifacts and cache directories:
$ forge clean
Compile the contracts:
$ forge build
Format the contracts:
$ forge fmt
Get a gas report:
$ forge test --gas-report
Lint the contracts:
$ bun run lint
Run the tests:
$ forge test