Skills

Defi Yield

DeFi yield analysis and optimization, lending rates, LP yields, staking returns, yield...

Install

npx skills add HKUDS/Vibe-Trading --skill defi-yield -g -a claude-code -y
Repository
HKUDS/Vibe-Trading37.4k
Category
Engineering
Updated
3d ago
License
MIT
Context cost
Mediumabout 2,492 tokens
Runs scripts
No, instructions only

What it does

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

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 SourceMechanismTypical APY RangeRisk Level
Lending (supply)Earn interest from borrowers1-15% (stablecoins 3-8%)Low-medium
Borrowing costInterest paid by borrowers3-20%N/A (cost side)
LP fees (AMM)Trading fee share from DEX5-50% (varies by pair)Medium-high
StakingValidator/delegation rewards3-15%Low-medium
Liquidity miningProtocol token incentives10-500% (unsustainable)High
RestakingRe-hypothecated staking yield5-20% (ETH + AVS rewards)Medium-high
Points farmingOff-chain points → future airdropUnknown (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"
Read the whole SKILL.md on GitHub

More in Engineering