Add UniagentHook hook on ethereum#596
Merged
marktoda merged 1 commit intoMay 28, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
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 —
_beforeSwapreturns(selector, delta, 0)with no fee override; noupdateDynamicLPFee()call. ✓ - upgradeable: false —
source_meta.jsonconfirmsproxy: false; no proxy, delegatecall, or mutable implementation storage in source. ✓ - requiresCustomSwapData: false — The
bytes calldatahookData parameter is unused in both_beforeSwapand_afterSwap. ✓ - vanillaSwap: false — Hook has
beforeSwapReturnsDeltaandafterSwapReturnsDeltaset; it actively extracts WETH from swaps via delta returns. ✓ - swapAccess: governance —
_requireFeeConfig()reverts until owner setstoken,rewardVault,aiFundingWallet,devWallet, andrewardEpochStartviaconfigureFeeFlow()/configure(). This is an owner-controlled initialization gate. ✓
Metadata
- name:
UniagentHookmatchescontractNamefrom 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/impliedDEV_SHARE), 7-day epochs (REWARD_EPOCH_SECONDS = 7 days). ✓ - verifiedSource: true — Matches
verified: trueinsource_meta.json. ✓ - chainId: 1 — Correct for ethereum. ✓
- No audit claims, promotional, or endorsement language. ✓
All fields verified against on-chain source. No issues found.
marktoda
approved these changes
May 28, 2026
Contributor
marktoda
left a comment
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Properties
Warnings
Closes #595