Skip to content

fix: align Uniswap V4 hook guidance and security checks - #6

Merged
ccashwell merged 2 commits into
ccashwell:mainfrom
devtooligan:squash/uniswap-v4-hook-guidance
Aug 4, 2026
Merged

ccashwell merged 2 commits into
ccashwell:mainfrom
devtooligan:squash/uniswap-v4-hook-guidance

Conversation

@devtooligan

Copy link
Copy Markdown
Contributor

Summary

  • Align hook permission address bits, callback types, BaseHook overrides, dynamic-fee boundaries, native settlement, and CREATE2 mining with current Uniswap V4 core.
  • Add focused checks for IUnlockCallback authorization, returned liquidity deltas, full state and custody domains, external price sources, lifecycle paths, and exit liveness.

devtooligan and others added 2 commits August 3, 2026 15:55
* fix: align Uniswap v4 hook guidance with current APIs

* fix: address Uniswap v4 review findings

* fix: keep hook guidance on pinned dependencies

* fix: remove mutable template assumptions

* fix: clarify exact-output fee boundary

* fix: cover missing V4 hook security checks

* fix: remove redundant skill references
Resolves conflicts in skills/uniswap-v4-hooks/SKILL.md between this
branch's prose rewrite and PR ccashwell#5's example-hook bug fixes. The rewrite
already removed the buggy AllowlistHook/SwapFeeHook/ConstantSumHook
examples and states PR ccashwell#5's lessons as guidance (sender vs end user,
unspecified-currency deltas, delta settlement), so the rewrite is kept
and the two additive details from PR ccashwell#5 are folded into "Return Deltas
and Custom Accounting": the four-quadrant specified/unspecified table
and the take()-or-CurrencyNotSettled() behavior of returned credits.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ccashwell
ccashwell merged commit e432206 into ccashwell:main Aug 4, 2026
1 check failed
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.

2 participants