What problem does it solve?
Solidity AMM and DeFi liquidity pool contracts are high-value targets for critical exploits that can drain user funds, including reentrancy attacks, donation/inflation attacks, oracle manipulation, and slippage flaws. This Skill eliminates the risk of overlooking these high-severity vulnerabilities during development or audit.
Core Features & Use Cases
- Comprehensive Vulnerability Checklist: Covers all critical AMM security gaps including reentrancy, CEI ordering, share math flaws, oracle manipulation, slippage, admin control weaknesses, and integer overflow risks.
- Hardened Implementation Patterns: Provides audited, production-ready code examples for withdraw, deposit, swap, and admin functions to replace vulnerable hand-rolled logic.
- Use Case: Use this when writing, auditing, or reviewing any Solidity AMM, liquidity pool, or DeFi swap contract to ensure all common attack vectors are mitigated before mainnet deployment.
Quick Start
Use the defi-amm-security skill to review your Solidity AMM contract's deposit and withdraw functions for reentrancy and share math vulnerabilities.