Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Uniswap v4 Hooks Explained — And What We Built for OnChain Revenue Sharing

说明与用途

BatchDistributeHook 允许 Uniswap v4 池运营者通过 Spraay 的批量合约一次性向多达 200 名收款人分发收入,简化并加速支付流程。

问题

Pool operators needed a way to distribute accumulated fees or revenue to many stakeholders in a single on‑chain transaction.

结果

BatchDistributeHook enables efficient, verifiable on‑chain revenue sharing for Uniswap v4 pools, reducing operator effort and transaction costs.

工作流

  • 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

证据

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."

来源

  • 记录日期: 2026-11-01T11:59:11.350Z