Add IdleHook hook on ethereum - #7156
Merged
Ponx merged 1 commit intoSep 16, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Review: hooks/ethereum/0xbb7a22aacc8ff273df294beb306d21a1e59b0ac8.json
Address Flags
Address suffix 0ac8 = 2760 = bits {11, 9, 7, 6, 3} set:
| Flag | Expected | JSON |
|---|---|---|
| beforeAddLiquidity (bit 11) | true | true ✓ |
| beforeRemoveLiquidity (bit 9) | true | true ✓ |
| beforeSwap (bit 7) | true | true ✓ |
| afterSwap (bit 6) | true | true ✓ |
| beforeSwapReturnsDelta (bit 3) | true | true ✓ |
| All others | false | false ✓ |
All 14 flags match the address bitmask.
Properties
- dynamicFee: false ✓ —
FEE_BPS = 200is hardcoded; noupdateDynamicLPFee()call anywhere. - upgradeable: false ✓ — No proxy pattern, no delegatecall to mutable address, no SELFDESTRUCT.
source_meta.jsonconfirmsproxy: false. - requiresCustomSwapData: false ✓ —
_beforeSwapignores thebytes calldatahookData entirely; swaps execute without it. - vanillaSwap: false ✓ —
beforeSwapReturnsDeltais true and the hook intercepts 2% of idle-token exact-input amounts viatoBeforeSwapDelta(fee, 0), modifying swap execution. - swapAccess: "none" ✓ —
_beforeSwaponly enforces pool binding (WrongPoolrevert), not caller-based access control. Any address may swap.
Metadata
- name
"IdleHook"matchescontractNamefrom verified source. ✓ - chainId
1matcheschains.jsonfor ethereum. ✓ - verifiedSource: true confirmed by
source_meta.json. ✓ - description is factually accurate: the contract is simultaneously an ERC-20 and a v4 hook; it captures a hardcoded 2% fee (
FEE_BPS=200) on exact-input swaps where idle is the specified (input) currency viabeforeSwapReturnsDelta; fees go todripPoolvia_depositFee; distribution is per-block via_drip()with a velocity-adjusted horizon between H_MIN=1800 blocks (≈6h) and H_MAX=14400 blocks (≈48h). No promotional, audit, or safety language. ✓
Ponx
approved these changes
Sep 16, 2026
Ponx
left a comment
Collaborator
There was a problem hiding this comment.
Bot review verified; bitmask/flags/properties check out. LGTM.
Ponx
deleted the
hooks/ethereum/0xbb7a22aacc8ff273df294beb306d21a1e59b0ac8
branch
September 16, 2026 23:04
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
Combined ERC-20 token and Uniswap v4 hook that captures a hardcoded 2% fee on the idle-token input side of each swap via beforeSwap return delta, depositing fees into a drip pool that continuously distributes rewards to token holders block by block with a velocity-adjusted release horizon (6–48 hours).
Flags
Properties
Warnings
Closes #7142