Uniswap v4 Hooks Explained — And What We Built for OnChain Revenue Sharing
Description and use
BatchDistributeHook enables Uniswap v4 pool operators to distribute revenue to up to 200 recipients in a single on‑chain transaction via Spraay’s batch contract, simplifying and speeding up payouts.
Problem
Pool operators needed a way to distribute accumulated fees or revenue to many stakeholders in a single on‑chain transaction.
Outcome
BatchDistributeHook enables efficient, verifiable on‑chain revenue sharing for Uniswap v4 pools, reducing operator effort and transaction costs.
Workflow
- Create a pool with BatchDistributeHook as its hook contract
- Operate the pool normally (swaps, liquidity, etc.)
- When ready to distribute, call the hook’s distribute function
- Hook approves Spraay batch contract to spend the specified token amount
- Spraay batch contract executes a single transaction that transfers tokens to all recipients
- Recipients receive their shares on‑chain and can verify the settlement
Evidence
Uniswap v4 introduced one of the most significant architectural changes in DeFi: hooks.
Our hook lets pool operators push‑distribute ERC‑20 tokens or native currency (ETH) to up to 200 recipients in a single transaction through the Spraay batch contract on Base.
The hook interacts with Spraay's batch contract on Base at 0xb9c1ab7bd023c784c19b8e9f10ce9cded9ff9010.
Our BatchDistributeHook was merged into the Uniswap hooklist as PR #10617 in October 2026, listed as "Add BatchDistributeHook hook on base."
- Record date: 2026-11-01T11:59:11.350Z