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

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

Описание и применение

Hook BatchDistributeHook позволяет операторам Uniswap v4 распределять доходы среди до 200 получателей в одной транзакции, используя инфраструктуру Spraay, что упрощает и ускоряет процесс распределения средств.

Задача

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