Skip to content

Add UniagentHook hook on ethereum#596

Merged
marktoda merged 1 commit into
mainfrom
hooks/ethereum/0xa5db9bd1eac09894c680fe56bc5db26078c800cc
May 28, 2026
Merged

Add UniagentHook hook on ethereum#596
marktoda merged 1 commit into
mainfrom
hooks/ethereum/0xa5db9bd1eac09894c680fe56bc5db26078c800cc

Conversation

@hooklist-generator
Copy link
Copy Markdown

Summary

A Uniswap v4 hook that levies a 1% fee (100 bps) on the WETH side of each swap, taking WETH from the pool manager, unwrapping it to ETH, and distributing it across a reward vault (50%), an AI funding wallet (30%), and a dev wallet (20%) on a weekly epoch schedule.

Flags

Flag Value
beforeInitialize false
afterInitialize false
beforeAddLiquidity false
afterAddLiquidity false
beforeRemoveLiquidity false
afterRemoveLiquidity false
beforeSwap true
afterSwap true
beforeDonate false
afterDonate false
beforeSwapReturnsDelta true
afterSwapReturnsDelta true
afterAddLiquidityReturnsDelta false
afterRemoveLiquidityReturnsDelta false

Properties

Property Value
dynamicFee false
upgradeable false
requiresCustomSwapData false
vanillaSwap false
swapAccess governance

Warnings

  • Submitter did not provide a name. Using AI-derived "UniagentHook".
  • Submitter did not provide a description. Using AI-generated description.

Closes #595

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hooklist Ready Ready Preview, Comment May 27, 2026 9:51pm

Request Review

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: hooks/ethereum/0xa5db9bd1eac09894c680fe56bc5db26078c800cc.json

Address Flags

Last 2 bytes of address: 0x00cc = 0000 0000 1100 1100

Bit Flag Address bit JSON value
13 beforeInitialize 0 false ✓
12 afterInitialize 0 false ✓
11 beforeAddLiquidity 0 false ✓
10 afterAddLiquidity 0 false ✓
9 beforeRemoveLiquidity 0 false ✓
8 afterRemoveLiquidity 0 false ✓
7 beforeSwap 1 true ✓
6 afterSwap 1 true ✓
5 beforeDonate 0 false ✓
4 afterDonate 0 false ✓
3 beforeSwapReturnsDelta 1 true ✓
2 afterSwapReturnsDelta 1 true ✓
1 afterAddLiquidityReturnsDelta 0 false ✓
0 afterRemoveLiquidityReturnsDelta 0 false ✓

Flags match getHookPermissions() in source and the address bitmask.

Properties

  • dynamicFee: false_beforeSwap returns (selector, delta, 0) with no fee override; no updateDynamicLPFee() call. ✓
  • upgradeable: falsesource_meta.json confirms proxy: false; no proxy, delegatecall, or mutable implementation storage in source. ✓
  • requiresCustomSwapData: false — The bytes calldata hookData parameter is unused in both _beforeSwap and _afterSwap. ✓
  • vanillaSwap: false — Hook has beforeSwapReturnsDelta and afterSwapReturnsDelta set; it actively extracts WETH from swaps via delta returns. ✓
  • swapAccess: governance_requireFeeConfig() reverts until owner sets token, rewardVault, aiFundingWallet, devWallet, and rewardEpochStart via configureFeeFlow()/configure(). This is an owner-controlled initialization gate. ✓

Metadata

  • name: UniagentHook matches contractName from verified source. ✓
  • description: Accurately describes: 1% fee (FEE_BPS = 100), on WETH side only, poolManager.take() + IWETH9.withdraw(), 50/30/20 split (REWARD_SHARE/AI_SHARE/implied DEV_SHARE), 7-day epochs (REWARD_EPOCH_SECONDS = 7 days). ✓
  • verifiedSource: true — Matches verified: true in source_meta.json. ✓
  • chainId: 1 — Correct for ethereum. ✓
  • No audit claims, promotional, or endorsement language. ✓

All fields verified against on-chain source. No issues found.

Copy link
Copy Markdown
Contributor

@marktoda marktoda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bot review verified. UniagentHook (ethereum) — levies a 1% WETH-side swap fee, unwraps to ETH, splits across reward vault / AI funding / dev wallets on a weekly epoch. Bitmask 0x00cc → beforeSwap, afterSwap, beforeSwapReturnsDelta, afterSwapReturnsDelta. Description 290 chars (under 500). LGTM.

@marktoda marktoda merged commit 25e9530 into main May 28, 2026
7 checks passed
@marktoda marktoda deleted the hooks/ethereum/0xa5db9bd1eac09894c680fe56bc5db26078c800cc branch May 28, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hook: Uniagent Hook

1 participant