File contents V4 LP 自动复利
适用场景
V4 LP 自动复利;> 自动监控 Uniswap V4 头寸,在“手续费收益明显高于 gas 成本”时自动复利。
功能说明
V4 LP 自动复利
自动监控 Uniswap V4 头寸,在“手续费收益明显高于 gas 成本”时自动复利。
这个案例能帮你做什么
让 LP 头寸在夜间也能自动判断是否值得复利,不用盯盘。
用“收益 vs gas”阈值控制执行时机,减少低效交易。
失败连续出现时自动告警,避免问题长时间未发现。
你需要的 Skills(按类型)
类型
Skill
用途
来源
外部
web3
链上交互与数据读取
ClawHub
外部
uniswap
V4 头寸管理与执行
ClawHub
内置
telegram
推送复利结果与异常通知
OpenClaw Built-in
快速体验版(先跑一轮)
先只做“判断建议”,不发交易:
你是我的 OpenClaw 助手。
请帮我做“V4 LP 自动复利”的预演版:
1. 每 15 分钟读取已追踪头寸的 pending fees。
2. 估算当前复利交易 gas 成本。
3. 按“fees 是否超过阈值 * gas”输出是否建议复利。
4. 本轮不要发送交易,只输出判断结果、理由和下一次检查时间。
稳定自动版(可长期运行)
1) 头寸配置
const positions = [
{
pool: "0x...", // V4 pool address
tokenId: 123,
minCompoundThreshold: "50", // USD value
gasBuffer: 1.2
}
];
2) OpenClaw 执行提示词(自动版)
你是我的 OpenClaw 助手,请执行“V4 LP 自动复利”。
请使用 Skills:web3、uniswap、telegram。
每 15 分钟执行:
1. 查询追踪头寸的 pending fees。
2. 计算当前复利交易的 gas 成本。
3. 当 fees > threshold * gas 时执行复利。
4. 记录交易哈希与 gas 使用量。
5. 如果复利连续失败 3 次,立即告警。
安全规则:
- Max gas price: 50 gwei
- Only compound during low volatility
- Emergency pause if TVL drops >20%
成功标准
Position efficiency >95%
Gas costs <10% of compounded fees
Zero missed compound opportunities
源文件
来源:awesome-openclaw-zh 原始文件:11-v4-lp-auto-compounding.md
1 --- 2 name: v4-lp-auto-compounding 3 description: V4 LP 自动复利 4 --- 5 6 # V4 LP 自动复利 7 8 ## 适用场景 9 # V4 LP 自动复利;> 自动监控 Uniswap V4 头寸,在“手续费收益明显高于 gas 成本”时自动复利。 10 11 ## 功能说明 12 # V4 LP 自动复利 13 14 > 自动监控 Uniswap V4 头寸,在“手续费收益明显高于 gas 成本”时自动复利。 15 16 ## 这个案例能帮你做什么 17 18 - 让 LP 头寸在夜间也能自动判断是否值得复利,不用盯盘。 19 - 用“收益 vs gas”阈值控制执行时机,减少低效交易。 20 - 失败连续出现时自动告警,避免问题长时间未发现。 21 22 ## 你需要的 Skills(按类型) 23 24 | 类型 | Skill | 用途 | 来源 | 25 |---|---|---|---| 26 | 外部 | [`web3`](https://clawhub.ai/skills/claw-fi) | 链上交互与数据读取 | ClawHub | 27 | 外部 | [`uniswap`](https://clawhub.ai/skills/execute-swap) | V4 头寸管理与执行 | ClawHub | 28 | 内置 | `telegram` | 推送复利结果与异常通知 | OpenClaw Built-in | 29 30 ## 快速体验版(先跑一轮) 31 32 先只做“判断建议”,不发交易: 33 34 ```text 35 你是我的 OpenClaw 助手。 36 请帮我做“V4 LP 自动复利”的预演版: 37 1. 每 15 分钟读取已追踪头寸的 pending fees。 38 2. 估算当前复利交易 gas 成本。 39 3. 按“fees 是否超过阈值 * gas”输出是否建议复利。 40 4. 本轮不要发送交易,只输出判断结果、理由和下一次检查时间。 41 ``` 42 43 ## 稳定自动版(可长期运行) 44 45 ### 1) 头寸配置 46 47 ```javascript 48 const positions = [ 49 { 50 pool: "0x...", // V4 pool address 51 tokenId: 123, 52 minCompoundThreshold: "50", // USD value 53 gasBuffer: 1.2 54 } 55 ]; 56 ``` 57 58 ### 2) OpenClaw 执行提示词(自动版) 59 60 ```text 61 你是我的 OpenClaw 助手,请执行“V4 LP 自动复利”。 62 请使用 Skills:web3、uniswap、telegram。 63 64 每 15 分钟执行: 65 1. 查询追踪头寸的 pending fees。 66 2. 计算当前复利交易的 gas 成本。 67 3. 当 fees > threshold * gas 时执行复利。 68 4. 记录交易哈希与 gas 使用量。 69 5. 如果复利连续失败 3 次,立即告警。 70 71 安全规则: 72 - Max gas price: 50 gwei 73 - Only compound during low volatility 74 - Emergency pause if TVL drops >20% 75 ``` 76 77 ## 成功标准 78 - Position efficiency >95% 79 - Gas costs <10% of compounded fees 80 - Zero missed compound opportunities 81 82 ## 源文件 83 来源:awesome-openclaw-zh 84 原始文件:11-v4-lp-auto-compounding.md
YangYuChen-Work/awesome-ai-skills/tree/main/夜间自动化/v4-lp-auto-compounding commit e22659da24
Frequently asked questions How do I install the V4 Lp Auto Compounding skill? Run npx skillmds@latest add yangyuchen-work/v4-lp-auto-compounding in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the V4 Lp Auto Compounding skill do? V4 LP 自动复利 It is listed under Coding & Dev Tools on SkillMD.
Is V4 Lp Auto Compounding safe to use? This skill has not completed SkillMD's automated safety review yet. Capability flags: makes network calls. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with V4 Lp Auto Compounding? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is V4 Lp Auto Compounding free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published V4 Lp Auto Compounding? YangYuChen-Work (@yangyuchen-work) published this skill. Their other Agent Skills are listed on their SkillMD profile.