A practical security checklist that walks you through the standard AMM vulnerability surface: reentrancy guards, check-effects-interactions ordering, donation attacks from raw balanceOf calls, oracle manipulation via spot prices, and missing slippage protection. Each category shows a vulnerable snippet next to the hardened fix using OpenZeppelin or Uniswap libraries. If you're writing or auditing swap functions, LP deposits, or anything that tracks reserves, this gives you the pattern library and a final checklist to run through before deployment. The examples are concrete enough to paste and adapt. Includes audit tool commands for Slither, Echidna, and Foundry fuzzing at the end.
npx skills add https://github.com/affaan-m/everything-claude-code --skill defi-amm-security