← 返回
效率工具 中文

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,...
在多条链和协议中发现、存入并提取 DeFi 收益策略,适用于您或用户想要获取收益时使用,...
rachidjarray-hk-qa-fdt
效率工具 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 562
下载
💾 2
安装
1
版本
#latest

概述

DeFi Yield Strategies

Discover yield opportunities across DeFi protocols (Aave, Compound, and others), deposit tokens to earn yield, and withdraw when ready. This is a full lifecycle skill covering discovery through to exit.

Confirm wallet is authenticated

fdx status

If the wallet is not authenticated, refer to the authenticate skill.

Step 1: Discover Yield Strategies

Search for available yield opportunities:

# Browse all available strategies
fdx call discoverYieldStrategies

# Filter by chain
fdx call discoverYieldStrategies --chainKey ethereum

# Filter by token
fdx call discoverYieldStrategies --chainKey ethereum --tokenAddress 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48

# Filter by minimum APY and risk level
fdx call discoverYieldStrategies --chainKey ethereum --minApy 5 --maxRisk low

# Sort results
fdx call discoverYieldStrategies --chainKey ethereum --sortBy apy

discoverYieldStrategies Parameters

ParameterRequiredDescription
---------------------------------------------------------------------------------------------
--chainKeyNoFilter by blockchain (e.g. ethereum, polygon, arbitrum, base)
--tokenAddressNoFilter by token contract address
--minApyNoMinimum APY percentage (e.g. 5 for 5%)
--maxRiskNoMaximum risk level filter (e.g. low, medium, high)
--sortByNoSort results (e.g. apy, risk)

Step 2: Deposit for Yield

Once a strategy is selected, deposit tokens into it:

fdx call depositForYield \
  --chainKey <chain> \
  --strategyId <strategyId> \
  --amount <amount>

depositForYield Parameters

ParameterRequiredDescription
----------------------------------------------------------------------------------
--chainKeyYesBlockchain where the strategy runs
--strategyIdYesStrategy identifier from discoverYieldStrategies results
--amountYesAmount to deposit (human-readable)
--tokenAddressNoToken to deposit (if strategy accepts multiple tokens)

Step 3: Withdraw from Yield

Exit a position and retrieve tokens:

fdx call withdrawFromYield \
  --chainKey <chain> \
  --positionId <positionId>

withdrawFromYield Parameters

ParameterRequiredDescription
-----------------------------------------------------------------------
--chainKeyYesBlockchain of the position
--positionIdYesPosition identifier from the deposit result
--amountNoAmount to withdraw (omit for full withdrawal)
--recipientNoCustom recipient address (defaults to own wallet)

Example Session

# Check auth and balance
fdx status
fdx call getWalletOverview --chainKey ethereum

# Discover USDC yield strategies on Ethereum with at least 3% APY
fdx call discoverYieldStrategies \
  --chainKey ethereum \
  --tokenAddress 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 \
  --minApy 3 \
  --sortBy apy

# Deposit 1000 USDC into a chosen strategy
fdx call depositForYield \
  --chainKey ethereum \
  --strategyId <strategyId-from-discovery> \
  --amount 1000

# Later: withdraw the full position
fdx call withdrawFromYield \
  --chainKey ethereum \
  --positionId <positionId-from-deposit>

Flow

  1. Check authentication with fdx status
  2. Check available balance with fdx call getWalletOverview --chainKey
  3. Discover strategies with fdx call discoverYieldStrategies — present options to the human
  4. Human selects a strategy — confirm the choice, risks, and deposit amount
  5. Execute deposit with fdx call depositForYield
  6. When the human wants to exit, withdraw with fdx call withdrawFromYield

Important: DeFi protocols carry smart contract risk. Always present the risk level to your human and let them make the final decision on which strategy to use and how much to deposit.

Prerequisites

  • Must be authenticated (fdx status to check, see authenticate skill)
  • Wallet must hold sufficient balance of the deposit token on the target chain
  • If insufficient funds, suggest using the fund-wallet skill or swap-tokens skill to acquire the needed token

Error Handling

  • "Not authenticated" — Run fdx setup first, or see authenticate skill
  • "Insufficient balance" — Check balance; see fund-wallet skill
  • "Invalid strategyId" — Re-run discoverYieldStrategies to get current strategy IDs
  • "Invalid positionId" — The position may have already been withdrawn

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 23:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 445 📥 226,223
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,453
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 275 📥 114,797