Skip to content

Add Aegis hook on ethereum#576

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

Add Aegis hook on ethereum#576
marktoda merged 1 commit into
mainfrom
hooks/ethereum/0x8f29bd5c8429730fa4c46e6295c4e679ededd0cc

Conversation

@hooklist-generator
Copy link
Copy Markdown

Summary

AegisHook applies dynamic swap fees sourced from an external DynamicFeeManager, updates a TWAP oracle on each swap, charges a configurable hook fee on every trade (taken as a BeforeSwapDelta/AfterSwapDelta), and periodically reinvests accumulated fees as full-range liquidity via an AegisEngine on a 1-hour cooldown.

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: describes the broader AegisEngine platform (borrowable liquidity units, oracle-free solvency model, √K collateral floor) which are not substantiated by this hook's Solidity source. Using AI-generated description.

Closes #573

@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:57am

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

Contract: AegisHook (source verified on Etherscan, source_meta.json: proxy=false, verified=true)

Flags — Address Bitmask

Address suffix 0xd0cc → lowest 14 bits = 0x10CC (4300):

Bit Flag Expected File
13 beforeInitialize false false ✓
12 afterInitialize true true ✓
11–8 add/removeLiquidity false false ✓
7 beforeSwap true true ✓
6 afterSwap true true ✓
5–4 donate false false ✓
3 beforeSwapReturnsDelta true true ✓
2 afterSwapReturnsDelta true true ✓
1–0 addLiq/removeLiqReturnsDelta false false ✓

getHookPermissions() in source confirms all 14 bits identically.

Properties

  • dynamicFee = true
    _beforeSwap calls DYNAMIC_FEE_MANAGER.prepareSwap() and returns activeFee | LPFeeLibrary.OVERRIDE_FEE_FLAG — explicit LP fee override on every swap.

  • upgradeable = false
    No proxy pattern, no delegatecall, no mutable implementation pointer, no SELFDESTRUCT. source_meta.json confirms proxy: false. Ownable/Pausable do not introduce upgradeability.

  • requiresCustomSwapData = false
    The hookData parameter in _beforeSwap is completely ignored (bytes calldata with no usage). Swaps execute normally with empty hookData.

  • vanillaSwap = false
    dynamicFee=true, beforeSwapReturnsDelta=true, afterSwapReturnsDelta=true — all independently mandate false. The hook also charges a configurable hook fee deducted from the swap input via delta returns, materially changing swap economics.

  • swapAccess = "none"
    _beforeSwap has no access control guard. The Pausable pattern is present in the contract but _beforeSwap has no whenNotPaused modifier and BaseHook.beforeSwap also applies no pausing — paused() is only checked inside _tryReinvest (fee reinvestment path).

Metadata

  • chainId = 1 ✓ — matches chains.json ethereum entry.
  • verifiedSource = true ✓ — confirmed by source_meta.json.
  • name = "Aegis" ✓ — recognizable abbreviation of the on-chain contract name AegisHook; no promotional or endorsement language.
  • description ✓ — accurately captures all four behaviors substantiated by the source: (1) dynamic fees from IDynamicFeeManager, (2) TWAP oracle updates via IOracleManager.afterSwap, (3) per-swap hook fee charged as BeforeSwapDelta/AfterSwapDelta, and (4) periodic full-range fee reinvestment via IAegisEngine on the 1-hour REINVEST_COOLDOWN. No marketing, audit, or affiliation language.

All fields are correct and consistent with the verified on-chain source.

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 ethereum (0x8f29...d0cc). Bitmask 0x10cc → afterInitialize, beforeSwap, afterSwap, beforeSwapReturnsDelta, afterSwapReturnsDelta. dynamicFee=true. LGTM.

@marktoda marktoda merged commit b9b30f4 into main May 22, 2026
7 checks passed
@marktoda marktoda deleted the hooks/ethereum/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