Skip to content

Add Aegis hook on base#577

Merged
marktoda merged 1 commit into
mainfrom
hooks/base/0x8f29bd5c8429730fa4c46e6295c4e679ededd0cc
May 22, 2026
Merged

Add Aegis hook on base#577
marktoda merged 1 commit into
mainfrom
hooks/base/0x8f29bd5c8429730fa4c46e6295c4e679ededd0cc

Conversation

@hooklist-generator
Copy link
Copy Markdown

Summary

AegisHook charges dynamic swap fees set per-swap by DynamicFeeManager, collects additional hook fees on each swap, and periodically reinvests them as full-range liquidity via AegisEngine. It manages oracle observation cardinality growth and notifies LimitOrderManager and OracleManager after each swap.

Flags

Flag Value
beforeInitialize false
afterInitialize true
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 true
upgradeable false
requiresCustomSwapData false
vanillaSwap false
swapAccess none

Warnings

  • Submitter-proposed description rejected: contains unverifiable audit status claim ("has not yet been audited"). Using AI-generated description.

Closes #574

@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

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

Project Deployment Actions Updated (UTC)
hooklist Ready Ready Preview, Comment May 22, 2026 2:58am

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/base/0x8f29bd5c8429730fa4c46e6295c4e679ededd0cc.json

Contract: AegisHook on Base (chainId 8453). Source verified on Etherscan.

Flag Verification

Address 0x...d0cc, lowest 14 bits: 0xd0cc & 0x3fff = 0x10cc = 01 0000 1100 1100

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

All flags match getHookPermissions() in source and the bitmask. ✓

Properties Verification

  • dynamicFee: true_beforeSwap calls DYNAMIC_FEE_MANAGER.prepareSwap() and returns activeFee | LPFeeLibrary.OVERRIDE_FEE_FLAG. ✓
  • upgradeable: false — No proxy, no delegatecall, all dependencies are immutable. source_meta.json confirms "proxy": false. ✓
  • requiresCustomSwapData: false — The bytes calldata hookData in _beforeSwap is unnamed and entirely unused; swaps function correctly with empty hookData. ✓
  • vanillaSwap: false — Both beforeSwapReturnsDelta and afterSwapReturnsDelta are true (hook charges input-currency fees), and dynamic fee override is applied on every swap. ✓
  • swapAccess: "none"_beforeSwap has no access control gate. The sender == AEGIS_ENGINE branch only caps the fee, it does not revert or block. The contract inherits Pausable but pausing is an owner admin action, not per-swap access control. ✓

Metadata Verification

  • chainId: 8453 matches "base" in chains.json. ✓
  • verifiedSource: true matches "verified": true in source_meta.json. ✓
  • name: "Aegis" — a clean abbreviation of the verified contract name AegisHook / NatSpec @title AegisHook. No promotional language. ✓
  • description — Factually accurate. Covers: DynamicFeeManager setting per-swap fees, hook fees collected via BeforeSwapDelta (exactIn) and afterSwap return delta (exactOut), periodic full-range reinvestment via AegisEngine with cooldown, oracle observation cardinality growth management, and post-swap notifications to LimitOrderManager and OracleManager. All claims substantiated by source logic. ✓

All checks pass.

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. Aegis on base (0x8f29...d0cc, same address as 576). Bitmask 0x10cc → afterInitialize, beforeSwap, afterSwap, beforeSwapReturnsDelta, afterSwapReturnsDelta. dynamicFee=true. LGTM.

@marktoda marktoda merged commit a542ff5 into main May 22, 2026
7 checks passed
@marktoda marktoda deleted the hooks/base/0x8f29bd5c8429730fa4c46e6295c4e679ededd0cc branch May 22, 2026 16:41
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: Aegis

1 participant