Skip to main content
GRAPL’s local LaunchHook enforces initialization and swap rules in Uniswap v4. Its address enables exactly two callbacks: beforeInitialize and beforeSwap. The official Uniswap hook model explains callback permission bits.
Only an authorized factory can initialize a registered launch pool. This prevents pre-initialization of predictable future token pools with a different price.

Trade execution

The router supports exact-input swaps through registered pools, with a deadline, minimum output and maximum protocol fee. It settles actual v4 currency deltas before recording rewards. Partial fills pay protocol fees on executed GRAPL volume. On a buy, the protocol fee is additional GRAPL input. On a sell, it comes from GRAPL received, requires allowance and is included in net minimum output. The LP fee is separate. Failure in settlement, fees or rewards reverts the entire transaction.

Fixed integration, explicit powers

This implementation has no proxy upgrade, arbitrary external call, replaceable hook module or custom swap-return delta. Registry entries and hook/router dependencies are fixed once created. Administrators can change roles and pause protocol modules. Those powers affect operation; see security and authority. No external audit or AI safety guarantee is claimed. Modular hooks and AI-assisted review remain research proposals. Current addresses exist only in the local deployment; public-chain status is tracked under supported chains.