uniswap-v3-expert

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

A guide to integrating with Uniswap V3, a decentralized exchange that lets liquidity providers choose price ranges for their funds. It covers the deployed contracts and the process for creating pools, managing positions, swapping, and using price oracles.

In plain words
What is it for?
Use it to work with factories, pools, liquidity-position NFTs, routers, multi-hop swaps, time-weighted average prices, flash loans, and Uniswap callback interfaces.
Why use it?
Uniswap V3 integrations involve several contracts, callbacks, price ranges, and token-handling steps. Missing one of these details can cause failed transactions or incorrect liquidity and swap behavior.

Agent for Claude Code

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

Good fit Use it to work with factories, pools, liquidity-position NFTs, routers, multi-hop swaps, time-weighted average prices, flash loans, and Uniswap callback interfaces.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ccashwell/evm-cortex/uniswap-v3-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-v3-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/ccashwell/evm-cortex/uniswap-v3-expert/github.svg)](https://agentmods.dev/agents/ccashwell/evm-cortex/uniswap-v3-expert)
Your own site
<a href="https://agentmods.dev/agents/ccashwell/evm-cortex/uniswap-v3-expert"><img src="https://agentmods.dev/badge/agents/ccashwell/evm-cortex/uniswap-v3-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-v3-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/ccashwell/evm-cortex/uniswap-v3-expert"><img src="https://agentmods.dev/badge/agents/ccashwell/evm-cortex/uniswap-v3-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 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,587 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.00029 $0.02587
Opus 5.5 $0.00012 $0.01035
Sonnet 5.5 $0.00006 $0.00517
Haiku 4.5 $0.00003 $0.00259

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

Security

Grade A, and why

uniswap-v3-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-v3-expert.md · 177 lines

How it starts

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

Uniswap V3 Expert

You are the definitive authority on Uniswap V3 protocol architecture, concentrated liquidity mechanics, and production integration patterns. You understand the factory-pool model, NonfungiblePositionManager, SwapRouter, oracle system, and callback patterns. You write code that integrates with the real, deployed V3 contracts.

Expertise

  • Factory-pool architecture — UniswapV3Factory creates per-pair-per-fee pools via CREATE2
  • Concentrated liquidity — tick-based pricing, position ranges [tickLower, tickUpper], active vs inactive liquidity
  • Tick system — price = 1.0001^tick, tick spacing per fee tier (1/10/60/200), tick bitmap for efficient traversal
  • NonfungiblePositionManager — ERC-721 LP position NFTs, mint/increase/decrease/collect/burn lifecycle
  • SwapRouter — exactInputSingle, exactInput (multi-hop), exactOutputSingle, exactOutput
  • Oracle system — built-in TWAP via observation array, cumulative ticks, cardinality management
  • Callbacks — uniswapV3SwapCallback, uniswapV3MintCallback, uniswapV3FlashCallback
  • Flash loans — pool.flash() for atomic borrow/repay
  • Fee tiers — 0.01% (stables), 0.05% (correlated), 0.30% (standard), 1.00% (exotic)
  • Multi-hop routing — path encoding via abi.encodePacked(token, fee, token, ...)

Production Deployment Addresses (Ethereum)

UniswapV3Factory:                0x1F98431c8aD98523631AE4a59f267346ea31F984
NonfungiblePositionManager:      0xC36442b4a4522E871399CD717aBDD847Ab11FE88
SwapRouter (v1, legacy):         0xE592427A0AEce92De3Edee1F18E0157C05861564
SwapRouter02:                    0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45
QuoterV2:                        0x61fFE014bA17989E743c5F6cB21bF9697530B21e
UniversalRouter V2:              0x66a9893cC07D91D95644AEDD05D03f95e1dBA8Af
UniversalRouter V2.1.2:          0x23617e59A5925b2A4Bf75d73ff6711cD0b29De85

CRITICAL: Addresses vary by chain. Base, BNB, Avalanche, Celo and Unichain use different addresses (Unichain: Factory 0x1F98400000000000000000000000000000000003, NPM 0x943e6e07a7E8E791dAFC44083e54041D743C46E9). The legacy SwapRouter v1 exists only on Ethereum, Arbitrum One, Optimism and Polygon — use SwapRouter02 or UniversalRouter elsewhere. Always verify with cast code.

Read the full file on GitHub · 177 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 · +4 lines cc6c732c2b0e
  2. 3mo ago First seen · 173 lines · 29 tokens per session scan A 340909bcea4d

Subscribe to this mod's changes

uniswap-v3-expert is an agent published in the GitHub repository ccashwell/evm-cortex (131 stars, last pushed 1mo ago), licensed MIT. It adds 29 tokens to every session and 2,587 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-v3-expert compared with agents from other repositories

uniswap-v3-expert next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
uniswap-v3-expertccashwell/evm-cortexAgent1311mo agoMITA29Claude Code
chainaware-ltv-estimatorChainAware/behavioral-prediction-mcpAgent1020d agoMITA297Claude Code
chainaware-counterparty-screenerChainAware/behavioral-prediction-mcpAgent1020d agoMITA231Claude Code
token-economics-designerMatt-Dionis/claude-code-configsAgent6191y agoMITA28Claude Code
crypto-analystcoinpaprika/claude-marketplaceAgent9yesterdaynoneA34Claude Code
defi-engineerGeckoVision/gecko-surfAgent221mo agoApache-2.0A100Claude Code
crypto-traderrafaelkamimura/claude-toolsAgent1010mo agoMITA36Claude Code