微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📊

全策略对比,选出最优 LP 方案

Uniswap Lp Strategy · v0.1.0
专业技能 安全 B 级 作者 wpank 公开目录收录
1.1k 下载 0 安装 4.9k 收藏 15 浏览

简介

全面对比流动性挖矿策略,一键评估多版本、费率、区间宽度及再平衡方案,清晰呈现收益、无常损失与风险等级。

原始描述

Comprehensive LP strategy comparison for a token pair — evaluates all versions, fee tiers, range widths, and rebalance approaches side-by-side with APY, IL, gas costs, and risk ratings. Use when the user wants to compare LP options or see a detailed analysis of all strategies.

通过你的 Agent 添加

安装目录:lp-strategy/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/uniswap-lp-strategy/
Codex CLI~/.codex/skills/uniswap-lp-strategy/
DeepSeek Harness~/.agents/skills/uniswap-lp-strategy/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

lp-strategy 是一款专为 DeFi 流动性提供者设计的深度策略对比工具。与单一推荐型工具不同,它采用全景式分析框架,将同一交易对的所有可行 LP 方案并排呈现,帮助用户在投入资本前充分理解各选项的优劣。

典型使用流程:

  1. 输入目标交易对(如 WETH/USDC)及可选参数(本金规模、目标链)
  2. 系统自动委托 pool-researcher 采集全量池数据(TVL、交易量、历史 APY)
  3. lp-strategist 子代理评估所有组合策略:V2 全区间被动策略、V3 各费率档位的窄/中/宽区间策略、V4 方案(如适用),以及跨链机会
  4. 生成结构化对比表格,标注每策略的 Fee APY、预期无常损失(IL)、净收益、再平衡频率及风险等级

显著优点

  • 决策透明:不隐藏任何选项,用户可清晰看到从激进到保守的完整策略光谱
  • 成本精细化:将链上再平衡 Gas 成本纳入 Net APY 计算,真实反映小资金用户的盈亏平衡点
  • 场景化推荐:每项策略附带「最适合人群」标签(如主动管理者、被动持有者、小额 LP)
  • 跨链对比:支持一键对比主网与 L2(Base、Arbitrum 等)的 Gas 效率差异

潜在局限

  • 分析≠执行:工具仅输出对比报告,实际建仓需调用 manage-liquidity 技能,存在「分析-行动」断层
  • 数据依赖:依赖子代理的实时链上数据,新上线池子可能因数据不足导致评估可靠性下降
  • 无常损失预估:IL 为模型预测值,极端行情下实际损失可能显著偏离
  • 再平衡成本简化:Gas 估算基于历史均值,网络拥堵时实际成本可能更高

适合人群

  • 策略型 LP:希望在 V2「懒人理财」与 V3「主动管理」之间做理性权衡的用户
  • 跨链套利者:寻求同一交易对在多条链上的最优收益机会
  • 机构/大额资金:需评估不同区间宽度对资金效率与风险敞口的影响
  • DeFi 教育者:用于演示 LP 机制差异的教学场景

常规风险

  • 智能合约风险:涉及 Uniswap V3/V4 等非托管协议,合约漏洞可能导致资金损失
  • 价格预言机偏差:策略评估依赖链上价格数据,若数据源被操控可能影响推荐准确性
  • 再平衡执行风险:标注「Weekly」等频率仅为建议,实际需用户手动或委托机器人执行,延迟再平衡可能扩大 IL
  • Gas 价格敏感:主网窄区间策略对小资金(<$1K)可能因 Gas 侵蚀而实际亏损
  • 无常损失非对称:剧烈单边行情下,即使「Wide」区间也可能产生显著 IL,工具的历史回测不代表未来表现

使用建议

建议搭配 risk-assessor 进行压力测试,并在首次使用新策略时以小额资金验证实际 Gas 成本与收益表现。

技能正文


name: lp-strategy description: Comprehensive LP strategy comparison for a token pair — evaluates all versions, fee tiers, range widths, and rebalance approaches side-by-side with APY, IL, gas costs, and risk ratings. Use when the user wants to compare LP options or see a detailed analysis of all strategies. model: opus allowed-tools: [Task(subagent_type:lp-strategist), Task(subagent_type:pool-researcher)]

LP Strategy Comparison

Overview

Produces a comprehensive, multi-strategy comparison for LP positions on a token pair. Unlike optimize-lp which gives a single recommendation, this skill presents all viable strategies side-by-side with detailed pros/cons, enabling the user to make an informed decision.

This is the "deep dive" version — use when the user wants to understand all their options, not just the top pick.

When to Use

Activate when the user asks:

  • "Compare LP strategies for ETH/USDC"
  • "What are my options for LPing into X/Y?"
  • "Detailed LP analysis for WETH/USDC"
  • "Show me all fee tiers for this pair"
  • "V2 vs V3 vs V4 comparison for X/Y"
  • "Give me a full breakdown of LP options"
  • "I want to understand the tradeoffs before LPing"

Parameters

Parameter Required Default How to Extract
token0 Yes — First token
token1 Yes — Second token
capital No — Amount available for LP
chain No All chains Specific chain or "all" for cross-chain comparison
strategies No All Specific strategies to compare (usually "all")

Workflow

  1. Extract parameters from the user's request.

  2. Delegate to pool-researcher: First, get a full pool comparison across all fee tiers and versions via Task(subagent_type:pool-researcher). This provides the data foundation (TVL, volume, APY per pool).

  3. Delegate to lp-strategist: Invoke Task(subagent_type:lp-strategist) in comprehensive comparison mode. The agent evaluates every viable combination:

    • V2 full-range (passive)
    • V3 narrow range per fee tier
    • V3 medium range per fee tier
    • V3 wide range per fee tier
    • V4 options (if available)
    • Cross-chain opportunities (if chain="all")
  4. Present comparison table with all strategies ranked and annotated with pros/cons.

Output Format

LP Strategy Comparison: WETH/USDC

  Pair Type: Stable-Volatile (moderate volatility)
  Best Overall: V3 0.05%, Medium Range (see row 2 below)

  ┌────┬──────────────────┬────────┬──────────┬───────┬──────────┬──────────┬────────┐
  │ #  │ Strategy         │ Chain  │ Fee APY  │ IL    │ Net APY  │ Rebal.   │ Risk   │
  ├────┼──────────────────┼────────┼──────────┼───────┼──────────┼──────────┼────────┤
  │ 1  │ V3 0.05% Narrow  │ ETH    │ 35%      │ -12%  │ 23%      │ Weekly   │ HIGH   │
  │ 2  │ V3 0.05% Medium  │ ETH    │ 21%      │ -6%   │ 15%      │ Bi-weekly│ MEDIUM │
  │ 3  │ V3 0.05% Wide    │ ETH    │ 12%      │ -2%   │ 10%      │ Monthly  │ LOW    │
  │ 4  │ V3 0.30% Medium  │ ETH    │ 8%       │ -6%   │ 2%       │ Bi-weekly│ MEDIUM │
  │ 5  │ V3 0.05% Medium  │ Base   │ 18%      │ -5%   │ 13%      │ Bi-weekly│ MEDIUM │
  │ 6  │ V2 0.30% Full    │ ETH    │ 4%       │ -1%   │ 3%       │ Never    │ LOW    │
  └────┴──────────────────┴────────┴──────────┴───────┴──────────┴──────────┴────────┘

  Strategy Details:

  #1 V3 0.05% Narrow (±5%) — HIGH RISK, HIGH REWARD
    Pros: Highest fee capture, maximum capital efficiency
    Cons: Frequent rebalancing ($15/rebalance on mainnet), high IL risk
    Best for: Active managers with >$10K positions
    Gas warning: Break-even ~3 days per rebalance

  #2 V3 0.05% Medium (±15%) — RECOMMENDED
    Pros: Strong APY with manageable rebalancing, 80%+ time-in-range
    Cons: Moderate IL during large moves
    Best for: Most LPs with $1K+ positions
    Gas warning: Break-even ~1 day per rebalance

  #3 V3 0.05% Wide (±50%) — LOW MAINTENANCE
    Pros: Rarely needs rebalancing, low IL, almost passive
    Cons: Lower capital efficiency, lower APY
    Best for: Passive LPs, small positions where gas matters

  #6 V2 0.30% Full Range — SET AND FORGET
    Pros: Zero maintenance, no range management, battle-tested
    Cons: Lowest returns, less capital efficient
    Best for: First-time LPs, long-term holders who don't want to manage

  Ready to proceed? Choose a strategy and say "Add liquidity with strategy #2"

Important Notes

  • This skill produces analysis, not execution. To act on a strategy, use manage-liquidity.
  • Net APY = Fee APY - Expected IL. Always show both components.
  • Gas costs for rebalancing are factored into the comparison for each chain.
  • Cross-chain comparison (when chain="all") highlights L2 gas advantages.
  • The lp-strategist internally uses pool-researcher for data and risk-assessor for risk evaluation.

Error Handling

Error User-Facing Message Suggested Action
Token not found "Could not find token X." Provide contract address
No pools exist "No pools found for X/Y." Try different tokens or chain
Insufficient data "Not enough data for a reliable comparison." Pool may be too new
Agent unavailable "LP strategist is not available." Check agent configuration

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

liquidity-provisionuniswap-v3impermanent-lossyield-optimizationstrategy-comparisondefi-toolscross-chaingas-optimization

同类 Skill