Skip to content

Add AggHook hook on ethereum#671

Open
hooklist-generator[bot] wants to merge 1 commit into
mainfrom
hooks/ethereum/0x35fa675461ce9d9d7fda4b1a8b1cf767b616e888
Open

Add AggHook hook on ethereum#671
hooklist-generator[bot] wants to merge 1 commit into
mainfrom
hooks/ethereum/0x35fa675461ce9d9d7fda4b1a8b1cf767b616e888

Conversation

@hooklist-generator

Copy link
Copy Markdown

Summary

A Uniswap v4 hook that automatically routes swaps across multiple registered liquidity uniswapV3like pools from Uniswap, Pancakeswap, Sushiswap, Aerodrome, etc. By discovering and executing the most efficient path at transaction time, it allows traders to access deeper aggregated liquidity, improve price execution, and reduce the effects of liquidity fragmentation.

Flags

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

Properties

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

Warnings

None

Closes #669

@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
hooklist Ready Ready Preview, Comment Jun 19, 2026 8:37pm

Request Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review: hooks/ethereum/0x35fa675461ce9d9d7fda4b1a8b1cf767b616e888.json

Flags

Address suffix 0xe888 = binary 1110 1000 1000 1000. All 14 bits match the declared flags exactly:

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

Properties

  • dynamicFee: false ✓ — beforeSwap returns a fee override of 0 (mstore(0x40, 0)). Protocol fees are collected via the PoolManager donate() call (_fee() function), not via LP fee override. No updateDynamicLPFee() call present.
  • upgradeable: false ✓ — No proxy pattern, no delegatecall, no SELFDESTRUCT. Pool addresses are embedded as immutable bytecode constants.
  • requiresCustomSwapData: false ✓ — beforeSwap ignores the hookData bytes calldata parameter entirely; routing uses on-chain pool state and bytecode-embedded pool keys only.
  • vanillaSwap: false ✓ — Correct. beforeSwapReturnsDelta is true and beforeSwap executes cross-pool swaps internally (both V3 pools via uniswapV3SwapCallback/pancakeV3SwapCallback and V4 pools via the PoolManager swap selector), fundamentally changing how the swap executes.
  • swapAccess: "none" ✓ — beforeSwap only calls _onlyPoolManager() (standard protocol requirement that caller is PoolManager). Unlike beforeAddLiquidity and beforeInitialize, beforeSwap does not call _onlyAdmin(). No restriction on who can initiate swaps.

Metadata

  • verifiedSource: true ✓ — Confirmed by source_meta.json.
  • chainId: 1 ✓ — Confirmed by Mainnet.sol: PM = 0x000000000004444c5dc75cB358380D2e3dE08A90 (Uniswap v4 PoolManager on mainnet), GAS_TOKEN = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 (WETH).
  • name: "AggHook" ✓ — Matches ContractName from verified source (contract AggHook is Router).
  • description ✓ — Accurately describes the aggregation/routing behavior: the hook sorts pools by effective price (_rfq041/_rfq140), routes through up to 10 pools (3 V4 + 7 V3), and handles both V3 callbacks (uniswapV3SwapCallback, pancakeV3SwapCallback) and V4 nested swaps. No audit claims, safety guarantees, or unsubstantiated marketing language.

Conclusion

All flags, properties, and metadata are correct and substantiated by the on-chain source code.

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: ETH/USDT Aggregator hook

0 participants