MoonixHook on Robinhood Chain
Uniswap v4 Hook Contract 0x15ae8b061858b35427e2b63474efa7d9fdebf8cc on Robinhood Chain · Launchpad · Verified contract
- Volume (24h)
- $46
- Value locked (TVL)
- $46
- All-time volume
- $46
- Pools using this hook
- 1
- Swaps (24h)
- 2 (1 traders)
- Total swaps
- 2
What it does
A Moonix launchpad hook that charges every buy and sell a fixed 1% fee plus a per-pool tax set at launch (intended max 3%), paid in the quote coin to the platform, the creator and a TaxVault, while limiting swaps to allowlisted routers and keeping a price oracle.
How it works step by step
- Charges a fixed 1% trade fee on every swap in Moonix launchpad pools, always taken from the quote side (native coin or quote token), split 50/50 between the platform fee wallet and the token creator.
- Adds a per-pool buy or sell tax set once at registration (the launcher's own library caps each at 3%, but the hook itself does not enforce that cap), split into creator, burn, dividend and liquidity shares sent to the creator escrow and a TaxVault.
- Only the launcher can create pools, and only the launch position and the TaxVault can add liquidity.
- Only the launcher, the TaxVault and admin-allowlisted routers can swap on registered pools.
- Records a time-weighted price oracle (120 second and 60 second windows) clamped at the launch price, which the Moonix token uses for its sell limits and unlocks.
- Swap behaviour
- Swaps on registered pools must come through the launcher, the TaxVault or an allowlisted router, otherwise they revert; the hook then takes 1% plus the pool's buy or sell tax from the quote leg, so buyers pay more quote and sellers receive less. TaxVault buyback swaps pay nothing.
- Liquidity behaviour
- Adding liquidity is limited to the launch's initial position and the TaxVault; third parties cannot add. Remove-liquidity callbacks are disabled, so the hook can never block or charge withdrawals.
- Fee behaviour
- A fixed 1% fee on the quote amount, half to the platform feeWallet and half to the creator (or all to the platform if there is no creator), plus a per-pool buy/sell tax fixed at registration (intended max 3% each) routed to the creator and the TaxVault. Tax rates cannot be changed after a pool is registered.
- Owner & admin controls
- The immutable admin can wire the launcher and TaxVault once, and can add or remove routers from the swap allowlist at any time. The fee wallet and the 1% fee are immutable, and pool tax settings are written once by the launcher and never changed.
Enabled Uniswap v4 callbacks
beforeInitialize, afterInitialize, beforeAddLiquidity, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize: only the launcher may create pools; afterInitialize: seeds the price oracle and opens a one-time liquidity window; beforeAddLiquidity: restricts who can add liquidity; beforeSwap: gates swappers and charges fee/tax when the quote is the specified amount; afterSwap: charges fee/tax on the other leg and updates the oracle; beforeSwapReturnDelta/afterSwapReturnDelta: let the hook claim the fee and tax from swap amounts.
Security & trust assessment
Risk level: medium (verified source, high confidence).
Who controls it: An immutable admin address controls the router allowlist and can block swaps through any router it removes; it cannot change fees, taxes or the fee wallet. The launcher sets each pool's tax once at registration.
Risk to user funds: The hook takes 1% plus the pool's fixed buy or sell tax (intended up to 3%, so about 4% total) from each swap's quote leg and pays it out immediately. It holds no LP principal and cannot block liquidity withdrawals.
Security findings
- [medium] Admin-controlled swap allowlist: The admin can add or remove routers from the allowlist, so it can effectively stop trading through particular routers or all third-party routers on Moonix pools.
- [low] Tax cap enforced outside the hook: Buy/sell tax is set once per pool by the launcher; the 3% cap lives in the launcher's library, not in this hook, but rates can never change after registration.
- [info] Restricted liquidity provision: Only the launch position and the TaxVault can add liquidity; withdrawals are never gated by the hook.
- [info] Immutable fee: The 1% trade fee and the fee wallet are hard-coded and cannot be changed.
Contract details
- Verified source
- Yes (MoonixHook)
- Compiler
- solc 0.8.24+commit.e11b9ed9
- Bytecode size
- 11,868 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc20, fee-sharing, launchpad, liquidity-management, moves-currency, oracle, return-delta, tax
Pools using MoonixHook
- ETH / TST (0.00% fee) — 24h volume $46, TVL $46, 2 swaps today