nuroctane/nur-cli/reviewing-amm-and-cl-pools
Claude Code and agent skill by nuroctane/nur-cli
- community
Checking that the SKILL.md file is still in the repository.
Review AMM and concentrated-liquidity pools: k-invariant, callbacks, fee-on-transfer, empty pool, tick math, and spoofed swap callbacks. Use for Uniswap-style, stableswap, and custom AMMs.
Install
npx vskill@latest install nuroctane/nur-cli/reviewing-amm-and-cl-poolsSKILL.md
The same SKILL.md was published earlier as nuroctane/nur-cli/reviewing-amm-and-cl-pools.
Reviewing AMM and CL pools
In-scope pool/router/callback code only. Prove with Foundry, not sandwiches on mainnet.
CPMM / stableswap
- Invariant (
x*y=k, stableswapsum/prod) holds after fees. - Fee-on-transfer / rebasing tokens: reserves vs
balanceOfdesync. - Empty pool / first liquidity: price set by attacker.
- Router:
minOut,deadline, path length, recipient.
Concentrated liquidity (v3-style)
uniswapV3SwapCallback/ mint callback:msg.sendermust be a real pool (factory authenticates).- Tick net liquidity matches positions.
- Fee growth overflow / owed tokens.
- Price limit and remaining amount on multi-pool hops.
Callback spoof (common paid class)
If a callback trusts msg.sender without checking it is a factory-deployed pool, anyone can fake a swap/mint callback and drain tokens the pair thought it was owed. Write test_RevertWhen_CallbackFromUnknown.
Flash / donate
- Flash swap not repaid.
donatethat changes price without fees (if the pool allows it, document).
Grep: sc-research/references/grep-patterns.md (callbacks, reserves, slot0).
Next: reviewing-oracles-and-pricing if this pool is used as a price, writing-foundry-invariant-handlers for k.
Paid bounty analogs
Full $ table: hunting-x-linked-bounties references/paid-payouts.md. Raydium also lives on reviewing-solana-programs.
| $ | Protocol | Pack | Whitehat | |
|---|---|---|---|---|
| $1M | Balancer rounding + flashSwap | T04 / T15 | GothicShanon89238 | |
| $250k | Balancer V2 2025 | T15 | kankodu | |
| $505k | Raydium ticks | S09 | riproprip | |
| $100k | DFX EURS 2-decimal rounding | T04 | perseverance | |
| ~$290k | The Graph rounding | T04 | GregadETH | |
| 50 ETH | Balancer (riptide) | T15 | riptide | |
| 4 Medium / 1 Crit | Uniswap v4 periphery (Spearbit / OZ 2024) | T15 | firm audits |
KyberSwap CL and Balancer V2 2025 composable stables are hack analogs (case-cards.md).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/security/SCA/reviewing-amm-and-cl-pools/SKILL.md
Popularity
- Repository stars
- 4
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nuroctane/nur-cli/reviewing-amm-and-cl-pools)