Skip to content

Add IdleHook hook on ethereum - #7156

Merged
Ponx merged 1 commit into
mainfrom
hooks/ethereum/0xbb7a22aacc8ff273df294beb306d21a1e59b0ac8
Sep 16, 2026
Merged

Ponx merged 1 commit into
mainfrom
hooks/ethereum/0xbb7a22aacc8ff273df294beb306d21a1e59b0ac8

Conversation

@hooklist-generator

Copy link
Copy Markdown
Contributor

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

Flag Value
beforeInitialize false
afterInitialize false
beforeAddLiquidity true
afterAddLiquidity false
beforeRemoveLiquidity true
afterRemoveLiquidity false
beforeSwap true
afterSwap true
beforeDonate false
afterDonate false
beforeSwapReturnsDelta true
afterSwapReturnsDelta false
afterAddLiquidityReturnsDelta false
afterRemoveLiquidityReturnsDelta false

Properties

Property Value
dynamicFee false
upgradeable false
requiresCustomSwapData false
vanillaSwap false
swapAccess none

Warnings

  • Submitter did not provide a name. Using AI-derived "IdleHook".
  • Submitter did not provide a description. Using AI-generated description.

Closes #7142

@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/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 = 200 is hardcoded; no updateDynamicLPFee() call anywhere.
  • upgradeable: false ✓ — No proxy pattern, no delegatecall to mutable address, no SELFDESTRUCT. source_meta.json confirms proxy: false.
  • requiresCustomSwapData: false ✓ — _beforeSwap ignores the bytes calldata hookData entirely; swaps execute without it.
  • vanillaSwap: false ✓ — beforeSwapReturnsDelta is true and the hook intercepts 2% of idle-token exact-input amounts via toBeforeSwapDelta(fee, 0), modifying swap execution.
  • swapAccess: "none" ✓ — _beforeSwap only enforces pool binding (WrongPool revert), not caller-based access control. Any address may swap.

Metadata

  • name "IdleHook" matches contractName from verified source. ✓
  • chainId 1 matches chains.json for 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 via beforeSwapReturnsDelta; fees go to dripPool via _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 Ponx left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bot review verified; bitmask/flags/properties check out. LGTM.

@Ponx
Ponx merged commit 0a27ab8 into main Sep 16, 2026
5 checks passed
@Ponx
Ponx deleted the hooks/ethereum/0xbb7a22aacc8ff273df294beb306d21a1e59b0ac8 branch September 16, 2026 23:04
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: 0xbb7a22aacc8ff273df294beb306d21a1e59b0ac8 on ethereum

1 participant