@uniswap/v4-security-foundations
Security-first Uniswap v4 hook development. Threat models, delta accounting, access control, and audit requirements for V4 hooks.
Install
Add @uniswap/v4-security-foundations to Claude Code with the PolySkill CLI: polyskill add @uniswap/v4-security-foundations
Instructions
# v4 Hook Security Foundations Security-first guide for building Uniswap v4 hooks. Hook vulnerabilities can drain user funds—understand these concepts before writing any hook code. ## Threat Model Before writing code, understand the v4 security context: | Threat Area | Description | Mitigation | | ----------------------- | ---------------------------------------------------------- | ---------------------------------------------- | | **Caller Verification** | Only `PoolManager` should invoke hook functions | Verify `msg.sender == address(poolManager)` | | **Sender Identity** | `msg.sender` alw…
Keywords: uniswap, v4-hooks, security, solidity, smart-contracts, audit