uniswap-pool-analysisAnalyze Uniswap pool data including liquidity distribution, fee tiers, tick ranges, and TVL. Use when the user asks about pool metrics, liquidity analysis, or wants to query on-chain pool state.
Install via ClawdBot CLI:
clawdbot install wpank/uniswap-pool-analysisThis skill covers querying and analyzing Uniswap v3/v4 pool state on-chain using viem.
price = (sqrtPriceX96 / 2^96)^2L value representing active liquidity at the current tick.| Fee (bps) | Tick Spacing | Typical Use |
| ----------- | ------------ | ---------------- |
| 1 (0.01%) | 1 | Stablecoin pairs |
| 5 (0.05%) | 10 | Correlated pairs |
| 30 (0.30%) | 60 | Standard pairs |
| 100 (1.00%) | 200 | Exotic pairs |
Use the Uniswap v3 Pool ABI to read on-chain state:
import { createPublicClient, http } from "viem";
import { mainnet } from "viem/chains";
const client = createPublicClient({
chain: mainnet,
transport: http(process.env.ETHEREUM_RPC_URL),
});
// Read slot0 for current price and tick
const [
sqrtPriceX96,
tick,
observationIndex,
observationCardinality,
observationCardinalityNext,
feeProtocol,
unlocked,
] = await client.readContract({
address: poolAddress,
abi: poolAbi,
functionName: "slot0",
});
// Read liquidity
const liquidity = await client.readContract({
address: poolAddress,
abi: poolAbi,
functionName: "liquidity",
});
function sqrtPriceX96ToPrice(
sqrtPriceX96: bigint,
decimals0: number,
decimals1: number,
): number {
const price = Number(sqrtPriceX96) / 2 ** 96;
return (price * price * 10 ** decimals0) / 10 ** decimals1;
}
function tickToPrice(
tick: number,
decimals0: number,
decimals1: number,
): number {
return (1.0001 ** tick * 10 ** decimals0) / 10 ** decimals1;
}
To analyze liquidity distribution across ticks:
tickBitmap to find initialized ticksticks(tickIndex) to get liquidityNetMIN_TICK to MAX_TICK, accumulating net liquidity changesAlways accept a chainId parameter. Use the shared chain config from packages/common/ to resolve:
Generated Feb 24, 2026
A lending protocol uses this skill to analyze Uniswap pool liquidity and price stability for collateral assets, ensuring adequate market depth to prevent liquidations during volatility. It queries on-chain pool state to monitor TVL and tick ranges, helping set safe loan-to-value ratios.
An investment fund employs this skill to assess Uniswap pool metrics for trading pairs in their portfolio, analyzing fee tiers and liquidity distribution to optimize entry/exit strategies. It converts sqrtPriceX96 to prices for performance tracking across multiple chains.
A decentralized exchange aggregator integrates this skill to query real-time pool data, comparing liquidity and fees across Uniswap v3/v4 pools to route trades efficiently. It uses tick bitmap analysis to identify the best pools for large orders without slippage.
A data analytics platform uses this skill to provide users with visualizations of Uniswap pool metrics, such as TVL trends and liquidity distribution across ticks. It leverages multi-chain support to aggregate data from various networks for comprehensive reports.
A security firm applies this skill during audits of DeFi projects to verify pool interactions, checking that price conversions and liquidity calculations align with on-chain state. It analyzes fee tiers and tick ranges to ensure protocol compliance and safety.
Offer a subscription-based service providing real-time Uniswap pool analysis dashboards to institutional clients, with features like custom alerts for liquidity changes and fee tier comparisons. Revenue comes from monthly fees and premium data access.
Develop and sell an API that delivers processed Uniswap pool data, including converted prices and liquidity distributions, to developers building DeFi applications. Revenue is generated through usage-based pricing tiers and enterprise licenses.
Provide consulting services to help businesses integrate this skill into their systems, offering custom solutions for pool analysis, multi-chain support, and optimization. Revenue comes from project-based fees and ongoing maintenance contracts.
š¬ Integration Tip
Always validate the chainId parameter to ensure correct RPC and contract addresses, and cache frequently accessed pool data to reduce on-chain calls and improve performance.
Connect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever.
ERC-8004 Trustless Agents - Register, discover, and build reputation for AI agents on Ethereum. Use when registering agents on-chain, querying agent registries, giving/receiving reputation feedback, or interacting with the AI agent trust layer.
Autonomous crypto trading on Base via Bankr. Use for trading tokens, monitoring launches, executing strategies, or managing a trading portfolio. Triggers on "trade", "buy", "sell", "launch", "snipe", "profit", "PnL", "portfolio balance", or any crypto trading task on Base.
Deploy ERC20 tokens on Base using Clanker SDK. Create tokens with built-in Uniswap V4 liquidity pools. Supports Base mainnet and Sepolia testnet. Requires PRIVATE_KEY in config.
Query DeFi portfolio data across 50+ chains via Zapper's GraphQL API. Use when the user wants to check wallet balances, DeFi positions, NFT holdings, token prices, or transaction history. Supports Base, Ethereum, Polygon, Arbitrum, Optimism, and more. Requires ZAPPER_API_KEY.
Interact with Solana blockchain via Helius APIs. Create/manage wallets, check balances (SOL + tokens), send transactions, swap tokens via Jupiter, and monitor addresses. Use for any Solana blockchain operation, crypto wallet management, token transfers, DeFi swaps, or portfolio tracking.