Skip to content

Add Aegis Engine hook on monad#664

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

Add Aegis Engine hook on monad#664
hooklist-generator[bot] wants to merge 1 commit into
mainfrom
hooks/monad/0xe449e013004db4a5681e9622ca10c5ba0ea610cc

Conversation

@hooklist-generator

Copy link
Copy Markdown

Summary

AegisHook is a Uniswap v4 hook that applies dynamic LP fees computed by an external DynamicFeeManager (overriding the pool fee each swap), charges a configurable hook fee on each swap via BeforeSwapDelta/AfterSwapDelta, and periodically reinvests accumulated hook fees into a full-range LP position through an AegisEngine contract.

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 claims about oracle-independence and token custody that contradict observed IOracleManager integration and poolManager.mint(address(this)) calls. Using AI-generated description.

Closes #662

@vercel

vercel Bot commented Jun 17, 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 17, 2026 1: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/monad/0xe449e013004db4a5681e9622ca10c5ba0ea610cc.json

Contract: AegisHook (verified on Monad, chainId 143)


Flags

Address 0xe449e013004db4a5681e9622ca10c5ba0ea610cc — last 14 bits: 0x10cc = 0b00_0100_0011_0011_00 → masked to 14 bits: 0x10cc.

Bit Flag Address File Match
13 beforeInitialize 0 false
12 afterInitialize 1 true
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

Also confirmed against getHookPermissions() in source (lines 112–129).


Properties

  • dynamicFee: true ✓ — _beforeSwap returns activeFee | LPFeeLibrary.OVERRIDE_FEE_FLAG with activeFee sourced from DYNAMIC_FEE_MANAGER.prepareSwap(). _afterInitialize enforces LPFeeLibrary.isDynamicFee(key.fee).

  • upgradeable: false ✓ — All external dependencies (ORACLE_MANAGER, DYNAMIC_FEE_MANAGER, AEGIS_ENGINE, LIMIT_ORDER_MANAGER) are immutable. No proxy pattern, delegatecall, or SELFDESTRUCT. source_meta.json confirms "proxy": false.

  • requiresCustomSwapData: false ✓ — The bytes calldata hookData parameter is unnamed and unused in both _beforeSwap and _afterSwap. Swaps execute without any hookData.

  • vanillaSwap: false ✓ — Dynamic fees are overridden each swap; hook charges fees via BeforeSwapDelta (exactIn) and AfterSwapDelta (exactOut), directly modifying swap economics.

  • swapAccess: "none" ✓ — No caller-based gating in _beforeSwap. The sender == address(AEGIS_ENGINE) check (line 219) only caps the fee for engine-initiated swaps — it does not block any swap. The Pausable inherited contract only gates _tryReinvest (checked inside _tryReinvest at line 410), not _beforeSwap itself.


Metadata

  • chainId: 143 ✓ — Matches chains.json entry for monad.
  • verifiedSource: true ✓ — Confirmed by source_meta.json.
  • name: "Aegis Engine" — The on-chain contract name is AegisHook (NatSpec @title AegisHook). "Aegis Engine" refers to the IAegisEngine dependency (the fee-reinvestment component), not the hook itself. However, it reads as a project-qualified label for the Aegis system and contains no prohibited language (no "audited", "safe", "official", etc.). Acceptable under the project-qualified label allowance.
  • description ✓ — Accurately describes dynamic LP fee overriding, configurable hook fees via BeforeSwapDelta/AfterSwapDelta, and fee reinvestment via AegisEngine. All claims are substantiated by the Solidity logic. No marketing or audit claims.
  • auditUrl ✓ — Valid schema field, follows https:// pattern.

Outcome: APPROVE — All flags match the address bitmask, all properties are correctly derived from the source logic, and metadata is accurate.

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 Engine

0 participants