跳到正文
Skillpedia
分析与电子表格37k · #7511

defi-yield

它能做什么

这项技能分析借贷、提供流动性和质押等去中心化金融产品的收益。适合希望公平比较收益、并判断其可持续性的加密货币投资者。

适用场景

  • ✓当你想比较不同 DeFi 协议的借贷或质押收益的时候。
  • ✓当你想判断一个高额流动性挖矿收益能否持续的时候。
  • ✓当你想把借币利率作为加密市场杠杆需求的信号来解读的时候。

技能链接

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/defi-yield/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/defi-yield/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请比较主要 DeFi 协议上的稳定币借贷收益,并告诉我哪些看起来可持续。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会按来源对收益进行分类,例如借贷、LP 手续费、质押或激励代币,然后根据风险进行调整。它会指出,主要以激励代币支付的高收益可能无法持续,并从可持续性角度比较各协议。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

DeFi Yield Analysis & Optimization

Overview

Analyze and compare yields across DeFi protocols — lending, liquidity provision, staking, and yield farming — to identify the best risk-adjusted opportunities and assess sustainability. DeFi yields are a real-time proxy for crypto market leverage demand, capital allocation, and protocol health.

Core Concepts

1. DeFi Yield Sources

Yield Source Mechanism Typical APY Range Risk Level
Lending (supply) Earn interest from borrowers 1-15% (stablecoins 3-8%) Low-medium
Borrowing cost Interest paid by borrowers 3-20% N/A (cost side)
LP fees (AMM) Trading fee share from DEX 5-50% (varies by pair) Medium-high
Staking Validator/delegation rewards 3-15% Low-medium
Liquidity mining Protocol token incentives 10-500% (unsustainable) High
Restaking Re-hypothecated staking yield 5-20% (ETH + AVS rewards) Medium-high
Points farming Off-chain points → future airdrop Unknown (speculative) Very high

2. Lending Rate Analysis

Lending rates as market signal:

# High borrow rates = high leverage demand = bullish sentiment
# Low borrow rates = low leverage demand = bearish / waiting

def lending_rate_signal(borrow_rate_stable, borrow_rate_eth):
    """Analyze DeFi lending rates for market sentiment."""
    if borrow_rate_stable > 15:
        stable_signal = "extreme_demand"    # Leveraged long via stablecoin borrowing
    elif borrow_rate_stable > 8:
        stable_signal = "elevated_demand"
    elif borrow_rate_stable > 3:
        stable_signal = "normal"
    else:
        stable_signal = "low_demand"        # Bear market, no one borrowing

    if borrow_rate_eth > 10:
        eth_signal = "extreme_demand"       # Shorting or leveraged strategies
    elif borrow_rate_eth > 5:
        eth_signal = "elevated"
    else:
        eth_signal = "low_demand"

    return stable_signal, eth_signal

Key lending protocols:

Protocol Chain Specialization TVL Range
Aave V3 Multi-chain Blue-chip lending, institutional grade $10-20B
Compound V3 Ethereum, Base Conservative, USDC-focused $3-5B
MakerDAO/Sky Ethereum CDP-based DAI/USDS minting $8-15B
Morpho Ethereum Rate optimization, P2P matching $3-8B
Spark Ethereum MakerDAO lending arm $2-5B
Kamino Solana Concentrated LP + lending $1-3B

3. LP Yield Analysis

Impermanent Loss (IL) — the core risk of LP positions:

def impermanent_loss(price_ratio_change):
    """
    Calculate impermanent loss for a 50/50 AMM pool.
    price_ratio_change: new_price / old_price of the volatile asset.
    """
    r = price_ratio_change
    il = 2 * (r ** 0.5) / (1 + r) - 1
    return il * 100  # Return as percentage

# Examples:
# Price +25% → IL = -0.6%
# Price +50% → IL = -2.0%
# Price +100% (2x) → IL = -5.7%
# Price +200% (3x) → IL = -13.4%
# Price -50% → IL = -5.7%
# Price -75% → IL = -20.0%

LP yield = fee income + token incentives - impermanent loss

def net_lp_yield(fee_apy, incentive_apy, estimated_il_annualized):
    """Calculate risk-adjusted LP yield."""
    gross_yield = fee_apy + incentive_apy
    net_yield = gross_yield - abs(estimated_il_annualized)
    return net_yield

# Example: ETH/USDC pool
# Fee APY: 15%, Incentive APY: 20%, Estimated IL: 8%
# Net yield: 15% + 20% - 8% = 27%

LP pool evaluation criteria:

Metric Good Mediocre Avoid
Fee APY / TVL > 10% 5-10% < 5%
IL risk (based on pair volatility) < 5% annualized 5-15% > 15%
TVL stability (30d change) Growing or stable Declining < 10% Declining > 30%
Volume/TVL ratio > 0.5x daily 0.1-0.5x < 0.1x
Incentive dependency < 30% of yield 30-70% > 70% (unsustainable)

4. Staking Yield Analysis

ETH staking ecosystem:

Method APY Risk Liquidity
Solo validator ~3.5% Slashing, downtime Locked (exit queue)
Lido (stETH) ~3.3% Smart contract, governance Liquid (stETH tradeable)
Rocket Pool (rETH) ~3.2% Smart contract, more decentralized Liquid
Coinbase (cbETH) ~3.0% Custodial, regulatory Liquid
EigenLayer restaking ~3.5% + AVS rewards Smart contract, slashing risk Semi-liquid

**Staking yi

常见问题

为什么高收益不一定好?

通过代币激励支付的极高收益通常是暂时的,激励结束后可能随之消失。

DeFi 借贷没有风险吗?

不是。它存在智能合约、流动性和市场风险,技能会指出这些风险。

借币利率能说明什么?

借币利率较高通常意味着对杠杆的需求更多,这可能反映市场情绪。

详情

作者的原始描述

DeFi yield analysis and optimization — lending rates, LP yields, staking returns, yield farming strategies, risk-adjusted yield comparison, and protocol-level sustainability assessment.

repo: HKUDS/Vibe-Trading

热度

GitHub 星标
37k
排名
#7511
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能