返回顶部
y

yield-strategies收益策略

Discover, deposit into, and withdraw from DeFi yield generation strategies across multiple chains and protocols. Use when you or the user want to earn yield, find APY, stake tokens, explore DeFi, farm, deposit into a protocol, withdraw earnings, check yield opportunities, or grow their holdings. Covers "how can I earn on my USDC?", "find me yield", "stake my ETH", "where can I get the best APY?", "withdraw from Aave".

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
234
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

yield-strategies

DeFi 收益策略

发现 DeFi 协议(Aave、Compound 等)中的收益机会,存入代币赚取收益,并在准备就绪时提取。这是一个涵盖从发现到退出的完整生命周期技能。

确认钱包已认证

bash
fdx status

如果钱包未认证,请参考 authenticate 技能。

步骤 1:发现收益策略

搜索可用的收益机会:

bash

浏览所有可用策略


fdx call discoverYieldStrategies

按链筛选

fdx call discoverYieldStrategies --chainKey ethereum

按代币筛选

fdx call discoverYieldStrategies --chainKey ethereum --tokenAddress 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48

按最低年化收益率和风险等级筛选

fdx call discoverYieldStrategies --chainKey ethereum --minApy 5 --maxRisk low

排序结果

fdx call discoverYieldStrategies --chainKey ethereum --sortBy apy

discoverYieldStrategies 参数

参数必填描述
--chainKey按区块链筛选(例如 ethereum、polygon、arbitrum、base)
--tokenAddress
否 | 按代币合约地址筛选 | | --minApy | 否 | 最低年化收益率百分比(例如 5 表示 5%) | | --maxRisk | 否 | 最高风险等级筛选(例如 low、medium、high) | | --sortBy | 否 | 排序方式(例如 apy、risk) |

步骤 2:存入以获取收益

选定策略后,将代币存入其中:

bash
fdx call depositForYield \
--chainKey \
--strategyId \
--amount

depositForYield 参数

参数必填描述
--chainKey策略运行的区块链
--strategyId
是 | 来自 discoverYieldStrategies 结果的策略标识符 | | --amount | 是 | 存入数量(人类可读格式) | | --tokenAddress | 否 | 存入的代币(如果策略接受多种代币) |

步骤 3:从收益中提取

退出仓位并取回代币:

bash
fdx call withdrawFromYield \
--chainKey \
--positionId

withdrawFromYield 参数

参数必填描述
--chainKey仓位所在的区块链
--positionId
是 | 来自存入结果的仓位标识符 | | --amount | 否 | 提取数量(省略则全额提取) | | --recipient | 否 | 自定义接收地址(默认为自己的钱包) |

示例会话

bash

检查认证和余额


fdx status
fdx call getWalletOverview --chainKey ethereum

在以太坊上发现年化收益率至少 3% 的 USDC 收益策略

fdx call discoverYieldStrategies \ --chainKey ethereum \ --tokenAddress 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 \ --minApy 3 \ --sortBy apy

将 1000 USDC 存入选定的策略

fdx call depositForYield \ --chainKey ethereum \ --strategyId \ --amount 1000

稍后:全额提取仓位

fdx call withdrawFromYield \ --chainKey ethereum \ --positionId

流程

  1. 1. 使用 fdx status 检查认证状态
  2. 使用 fdx call getWalletOverview --chainKey 检查可用余额
  3. 使用 fdx call discoverYieldStrategies 发现策略 — 向用户展示选项
  4. 用户选择策略 — 确认选择、风险和存入金额
  5. 使用 fdx call depositForYield 执行存入
  6. 当用户想要退出时,使用 fdx call withdrawFromYield 提取

重要提示: DeFi 协议存在智能合约风险。始终向用户展示风险等级,让他们对使用哪个策略以及存入多少金额做出最终决定。

前置条件

  • - 必须已认证(使用 fdx status 检查,参见 authenticate 技能)
  • 钱包在目标链上必须持有足够的存入代币余额
  • 如果资金不足,建议使用 fund-wallet 技能或 swap-tokens 技能获取所需代币

错误处理

  • - 未认证 — 先运行 fdx setup,或参见 authenticate 技能
  • 余额不足 — 检查余额;参见 fund-wallet 技能
  • 无效的 strategyId — 重新运行 discoverYieldStrategies 获取当前策略 ID
  • 无效的 positionId — 该仓位可能已被提取

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 yield-strategies-1776187141 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 yield-strategies-1776187141 技能

通过命令行安装

skillhub install yield-strategies-1776187141

下载

⬇ 下载 yield-strategies v0.1.0(免费)

文件大小: 2.48 KB | 发布时间: 2026-4-15 13:38

v0.1.0 最新 2026-4-15 13:38
Initial release of yield-strategies skill.

- Discover DeFi yield strategies across multiple chains and protocols.
- Deposit tokens into selected yield strategies.
- Withdraw funds from existing yield positions.
- Filter and sort available strategies by chain, token, APY, and risk level.
- Full workflow guidance from discovery through to exit, with example commands.
- Includes error handling tips and prerequisites for smooth operation.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部