What problem does it solve?
Uniswap v4 hooks carry critical security risks including NoOp rug pulls, missing caller verification, and delta accounting errors that can lead to complete user fund loss. Developers building custom v4 hooks lack a centralized, security-first resource to avoid these common, high-impact pitfalls.
Core Features & Use Cases
- Threat model & permission risk matrix: Clear breakdown of all 14 v4 hook permissions with associated risk levels to guide safe, minimal permission configuration.
- Vulnerability catalog & attack patterns: Detailed explanations of critical and high-severity exploits with detection methods and concrete mitigation steps for common implementation errors.
- Production-ready templates & checklists: Audited base hook templates, gas budget guidelines, risk scoring systems, and pre-deployment audit checklists to streamline secure hook deployment and audit readiness.
- Use Case: A developer building a custom v4 hook for a token launch platform can use this skill to implement proper access controls, avoid dangerous permission configurations, and prepare for a required third-party security audit.
Quick Start
Use the v4-security-foundations skill to review your custom Uniswap v4 hook code for security vulnerabilities and generate a tailored pre-deployment audit checklist.