对比 Uniswap 流动性池:最佳费率层级与版本 - Openclaw Skills

作者:互联网

2026-03-28

AI教程

什么是 对比 Uniswap 流动性池?

“对比 Uniswap 流动性池”技能是专为 Openclaw Skills 用户设计的专业 DeFi 分析工具。它系统地评估了多个 Uniswap 协议版本(V2、V3 和 V4)以及从 1bp 到 100bp 的费率层级中的代币对。通过将复杂的数据检索委托给 pool-researcher 子代理,它提供了关于流动性最集中和收益最高位置的高级战略概览。

该技能对于需要做出数据驱动决策而无需手动搜索多个 DEX 界面的交易者和流动性提供者至关重要。它将锁仓总量(TVL)、24小时成交量、7日 APY 和市场深度等关键指标汇总到一个单一的、可操作的报告中。

下载入口:https://github.com/openclaw/skills/tree/main/skills/wpank/compare-pools

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install compare-pools

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 compare-pools。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

对比 Uniswap 流动性池 应用场景

  • 为特定代币对(如 ETH/USDC)寻找最佳费率层级。
  • 对比 Uniswap V3 和 V4 之间的收益表现和流动性深度。
  • 根据 7 日 APY 识别最佳的流动性提供池。
  • 分析跨链池表现,寻找最有效的交易网络。
对比 Uniswap 流动性池 工作原理
  1. 技能从用户请求中提取代币符号、链偏好和对比指标。
  2. 触发 pool-researcher 子代理扫描指定代币对的 Uniswap 协议数据。
  3. 系统收集 V2、V3 和 V4 实现中的 TVL、成交量和深度的实时指标。
  4. 根据用户的偏好(APY、TVL 或成交量)对结果进行计算和排名。
  5. 最后,生成一个结构化的对比表,并对表现最佳的池给出明确建议。

对比 Uniswap 流动性池 配置指南

要在 Openclaw Skills 框架内使用此技能,请确保您的代理有权访问 pool-researcher 子代理。无需直接配置 MCP 工具,因为它通过委托操作。只需将该技能添加到代理的配置文件中即可。

# 如何通过自然语言触发技能的示例
"对比以太坊上所有的 ETH/DAI 池并按 APY 排名"

对比 Uniswap 流动性池 数据架构与分类体系

该技能将数据组织成结构化的对比矩阵。以下是用于流动性池评估的分类标准:

属性 描述
池版本 协议版本 (V2, V3, 或 V4)
费率层级 交易手续费 (1bp, 5bp, 30bp, 100bp)
TVL 以美元计的锁仓总量
24h 成交量 过去 24 小时的交易量
7d APY 基于 7 日手续费预测的年化收益率
1% 深度 1% 价格范围内的可用流动性
name: compare-pools
description: Compare all Uniswap pools for a token pair across fee tiers and versions. Use when the user asks which pool is best, wants to compare V3 vs V4, or wants to find the optimal fee tier.
model: opus
allowed-tools: [Task(subagent_type:pool-researcher)]

Compare Pools

Overview

Compares all available Uniswap pools for a token pair across fee tiers (1bp, 5bp, 30bp, 100bp) and protocol versions (V2, V3, V4). Delegates to pool-researcher in comparison mode to rank pools by APY, liquidity depth, and utilization.

When to Use

Activate when the user asks:

  • "Compare ETH/USDC pools"
  • "Which pool is best for ETH/USDC?"
  • "V3 vs V4 for this pair"
  • "Best fee tier for WETH/USDC"
  • "Which fee tier has the best APY?"
  • "Compare liquidity across fee tiers"

Parameters

Parameter Required Default Description
token0 Yes First token name, symbol, or address
token1 Yes Second token name, symbol, or address
chain No All chains Chain name or "all" for cross-chain comparison
compareBy No all Focus: "tvl", "volume", "apy", or "all"

Workflow

  1. Extract parameters from the user's request.

  2. Delegate to pool-researcher: Invoke Task(subagent_type:pool-researcher) asking for a comparison of all pools for the token pair. The agent will discover pools across fee tiers and versions, gather data for each, and rank them.

  3. Present comparison: Format as a comparison table with a clear recommendation.

Output Format

Pool Comparison: WETH/USDC (Ethereum)

  | Pool       | Fee    | TVL     | Vol 24h  | APY 7d | Depth 1% | Recommended |
  | ---------- | ------ | ------- | -------- | ------ | -------- | ----------- |
  | V3 0.05%   | 5bp    | $332M   | $610M    | 21.3%  | $5M      | Best APY    |
  | V3 0.30%   | 30bp   | $85M    | $45M     | 8.2%   | $2M      |             |
  | V3 1.00%   | 100bp  | $12M    | $3M      | 4.1%   | $500K    |             |
  | V2 0.30%   | 30bp   | $25M    | $8M      | 3.5%   | $1M      |             |

  Recommendation: V3 0.05% pool — highest APY with deepest liquidity.

Important Notes

  • Delegates to pool-researcher — no direct MCP tool calls.
  • Pools with zero liquidity or no activity are excluded from comparison.
  • Ranking considers multiple factors: APY, depth, stability, and utilization.

Error Handling

Error User-Facing Message Suggested Action
No pools found "No active pools found for X/Y." Check token names or try another chain
Single pool only "Only one pool exists for X/Y." Shows single pool analysis instead

相关推荐