Add AegisHook hook on monad#663
Closed
hooklist-generator[bot] wants to merge 1 commit into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
AegisHook Review — hooks/monad/0xe449e013004db4a5681e9622ca10c5ba0ea610cc.json
Address Flags
Address 0xe449e013004db4a5681e9622ca10c5ba0ea610cc — last 14 bits: 0x10cc = 4300 = 01 0000 1100 1100 binary.
| Bit | Flag | Expected | JSON |
|---|---|---|---|
| 12 | afterInitialize | true | true ✓ |
| 7 | beforeSwap | true | true ✓ |
| 6 | afterSwap | true | true ✓ |
| 3 | beforeSwapReturnsDelta | true | true ✓ |
| 2 | afterSwapReturnsDelta | true | true ✓ |
| all others | — | false | false ✓ |
Confirmed also by getHookPermissions() in the verified source.
Properties
- dynamicFee: true ✓ —
_beforeSwapcallsDYNAMIC_FEE_MANAGER.prepareSwap()to getactiveFeeand returnsactiveFee | LPFeeLibrary.OVERRIDE_FEE_FLAG, overriding the LP fee dynamically on every swap. - upgradeable: false ✓ —
source_meta.jsonconfirmsproxy: false. All external dependencies (ORACLE_MANAGER,DYNAMIC_FEE_MANAGER,AEGIS_ENGINE,LIMIT_ORDER_MANAGER) areimmutable. Nodelegatecall, mutable implementation slot, orSELFDESTRUCT. - requiresCustomSwapData: false ✓ — The
hookDataparameter in_beforeSwapis unnamed and completely unused. Swaps function correctly with empty hookData. - vanillaSwap: false ✓ — Correctly false:
dynamicFeeis true, and bothbeforeSwapReturnsDeltaandafterSwapReturnsDeltaare active (used to charge a hook fee cut from swap input). - swapAccess: "none" ✓ —
_beforeSwapapplies no gating or revert-based access control on swaps. ThePausablemodifier only gates_tryReinvest(fee reinvestment), not swap execution itself.
Metadata
- chainId: 143 ✓ — Matches monad in
chains.json. - name: "AegisHook" ✓ — Matches the contract name exactly. No promotional or endorsement language.
- verifiedSource: true ✓ — Confirmed by
source_meta.json("verified": true). - description ✓ — All three claims (dynamic fees via DynamicFeeManager, oracle observations after swaps, fee reinvestment into full-range LP via AegisEngine) are substantiated by the source logic in
_beforeSwap,_afterSwap, and_tryReinvestrespectively. No marketing or audit language.
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 applies dynamic fees to swaps via an external DynamicFeeManager, integrates oracle price observations after each swap, and periodically reinvests accumulated hook fees into full-range LP positions via an AegisEngine.
Flags
Properties
Warnings
Closes #661