What problem does it solve? Writing or auditing Solidity AMM and liquidity-pool contracts exposes developers to subtle vulnerabilities like reentrancy, donation attacks, and flash-loan oracle manipulation that are easy to miss without a structured checklist. ## Core Features & Use Cases - Vulnerability Pattern Library: Side-by-side vulnerable and hardened Solidity implementations for reentrancy, CEI ordering, donation/inflation attacks, slippage, and admin controls. - Security Checklist: A concrete audit checklist covering share math, SafeERC20 usage, TWAP oracles, slippage deadlines, and overflow-safe reserve math. - Audit Tooling Guidance: Example commands for Slither static analysis, Echidna property testing, and Foundry fuzzing. - Use Case: While implementing a swap function for a new liquidity pool, use this Skill to verify the function enforces amountOutMin and deadline checks, uses nonReentrant, and avoids raw balanceOf-based share math. ## Quick Start Ask the AI to audit your Solidity AMM contract's deposit and swap functions against the DeFi AMM security checklist.