nuroctane/nur-cli/reviewing-amm-and-cl-pools

Claude Code and agent skill by nuroctane/nur-cli

Trust tier 3
  • community
Source check pending

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-pools

SKILL.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, stableswap sum/prod) holds after fees.
  • Fee-on-transfer / rebasing tokens: reserves vs balanceOf desync.
  • Empty pool / first liquidity: price set by attacker.
  • Router: minOut, deadline, path length, recipient.

Concentrated liquidity (v3-style)

  • uniswapV3SwapCallback / mint callback: msg.sender must 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.
  • donate that 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.

$ProtocolPackWhitehat
$1MBalancer rounding + flashSwapT04 / T15GothicShanon89238
$250kBalancer V2 2025T15kankodu
$505kRaydium ticksS09riproprip
$100kDFX EURS 2-decimal roundingT04perseverance
~$290kThe Graph roundingT04GregadETH
50 ETHBalancer (riptide)T15riptide
4 Medium / 1 CritUniswap v4 periphery (Spearbit / OZ 2024)T15firm 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nuroctane/nur-cli/reviewing-amm-and-cl-pools/badge)](https://verified-skill.com/skills/nuroctane/nur-cli/reviewing-amm-and-cl-pools)

Something wrong with this skill or its page? Tell us.