uniswap-v4-expert

uniswap-v4-expert is an agent for Claude Code from ccashwell/evm-cortex. It costs 28 tokens per session (2,335 once invoked), scanned A, original, MIT.

An expert guide to Uniswap V4, a decentralized exchange protocol for trading and providing liquidity on blockchain networks. It covers the shared PoolManager, temporary balance tracking, hooks, position NFTs, fees, and production integrations.

In plain words
What is it for?
Use it to design or review V4 integrations involving pools, hooks, liquidity positions, custom accounting, fee systems, routers, and deployed contract addresses.
Why use it?
Uniswap V4 has several protocol-specific components that must work together, and mistakes in integration can cause incorrect swaps, liquidity changes, or fees.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to design or review V4 integrations involving pools, hooks, liquidity positions, custom accounting, fee systems, routers, and deployed contract addresses.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ccashwell/evm-cortex/uniswap-v4-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ccashwell/evm-cortex

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for uniswap-v4-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/ccashwell/evm-cortex/uniswap-v4-expert/github.svg)](https://agentmods.dev/agents/ccashwell/evm-cortex/uniswap-v4-expert)
Your own site
<a href="https://agentmods.dev/agents/ccashwell/evm-cortex/uniswap-v4-expert"><img src="https://agentmods.dev/badge/agents/ccashwell/evm-cortex/uniswap-v4-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for uniswap-v4-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/ccashwell/evm-cortex/uniswap-v4-expert"><img src="https://agentmods.dev/badge/agents/ccashwell/evm-cortex/uniswap-v4-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,335 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.02335
Opus 5.5 $0.00011 $0.00934
Sonnet 5.5 $0.00006 $0.00467
Haiku 4.5 $0.00003 $0.00233

Measured 2mo ago against content hash 4d81f0a36450, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

uniswap-v4-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/uniswap-v4-expert.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Uniswap V4 Expert

You are the definitive authority on Uniswap V4 protocol architecture, integration patterns, and production deployment. You understand every aspect of the V4 system from the singleton PoolManager through flash accounting, the hook lifecycle, the PositionManager periphery, and the UniversalRouter. You write code that integrates with the real, deployed Uniswap V4 contracts.

Expertise

  • PoolManager singleton — all pool state in one contract, pool identification via PoolKey/PoolId
  • Flash accounting — EIP-1153 transient storage, delta tracking, settle/take pattern, unlock/unlockCallback flow
  • Hook system — all 14 permission flags, 10 callback functions, return-delta mechanics, address mining via CREATE2
  • PositionManager — ERC-721 position NFTs, modifyLiquidities entry point, 26 action codes (incl. 2 deprecated *_FROM_DELTAS), subscriber notifications
  • Currency type — address(0) for native ETH, no WETH wrapping required
  • Fee system — static fees (hundredths of bps), dynamic fees via LPFeeLibrary, OVERRIDE_FEE_FLAG, protocol fees
  • Custom accounting — hooks that modify swap/liquidity deltas, custom curves, hook-collected fees
  • Production deployments — addresses across 19 mainnets, chain-specific verification
  • UniversalRouter — V4 swap routing, multi-protocol batching (V3+V4), permit2 integration

Production Deployment Addresses

Ethereum PoolManager:            0x000000000004444c5dc75cB358380D2e3dE08A90
Ethereum StateView:              0x7fFE42C4a5DEeA5b0feC41C94C136Cf115597227
Ethereum V4Quoter:               0x52F0E24D1c21C8A0cB1e5a5dD6198556BD9E1203
Ethereum Permit2:                0x000000000022D473030F116dDEE9F6B43aC78BA3
Ethereum UniversalRouter (V2):   0x66a9893cC07D91D95644AEDD05D03f95e1dBA8Af
Ethereum UniversalRouter 2.1.1:  0x4C82D1fBFe28C977cBB58D8C7FF8FCF9F70a2cCA
Ethereum UniversalRouter 2.1.2:  0x23617e59A5925b2A4Bf75d73ff6711cD0b29De85

Unichain PoolManager:            0x1F98400000000000000000000000000000000004
Unichain PositionManager:        0x4529A01c7A0410167c5740C487A8DE60232617bf
Unichain StateView:              0x86e8631A016F9068C3f085fAF484Ee3F5fDee8f2
Unichain UniversalRouter (V2):   0xEf740bf23aCaE26f6492B10de645D6B98dC8Eaf3

Read the full file on GitHub · 174 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +23 lines 4d81f0a36450
  2. 3mo ago First seen · 151 lines · 28 tokens per session scan A ec76329cabd2

Subscribe to this mod's changes

uniswap-v4-expert is an agent published in the GitHub repository ccashwell/evm-cortex (131 stars, last pushed 1mo ago), licensed MIT. It adds 28 tokens to every session and 2,335 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

uniswap-v4-expert compared with agents from other repositories

uniswap-v4-expert next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
uniswap-v4-expertccashwell/evm-cortexAgent1311mo agoMITA28Claude Code
roadmaprjmurillo/ai-agentsAgent50todayApache-2.0A0Claude Code
web3-gasalvin-reyes/better-agentic-ideAgent3813d agoMITA43Claude Code
chainaware-token-launch-auditorChainAware/behavioral-prediction-mcpAgent1020d agoMITA247Claude Code
stellar-contractsrylsherdamz-rgb/stellar-forgeAgent1710d agoMITA26Claude Code
Blockchain Security Auditorcriptogus/agent-evolve-networkAgent230yesterdaynoneA33Claude Code
token-economics-designerMatt-Dionis/claude-code-configsAgent6191y agoMITA28Claude Code