DeFi Yield
Yield source classification, impermanent loss calculation, concentrated liquidity strategies, and smart contract risk assessment.
DeFi Yield is a skill for CLI Trader that provides a structured framework for evaluating and comparing yield opportunities across decentralized finance protocols. Rather than chasing the highest advertised APY, this skill teaches your agent to classify yield sources, quantify risks, and identify which opportunities offer genuine risk-adjusted returns. It covers the full spectrum from conservative lending yields to aggressive liquidity provision strategies, giving your agent the analytical depth to reason about DeFi yield the way an experienced protocol researcher would.
The skill organizes yield into a taxonomy of real yield, inflationary yield, and unsustainable yield, then applies quantitative analysis to each category. For liquidity provision, it calculates impermanent loss for both standard constant-product AMMs and concentrated liquidity positions, factoring in fee revenue to determine net profitability across different price scenarios. Range selection for concentrated liquidity gets particular attention, with the agent learning to evaluate historical volatility, fee tier selection, and rebalancing frequency to optimize capital efficiency. The protocol evaluation framework scores smart contract risk across dimensions including audit quality, code complexity, admin key exposure, oracle dependencies, and historical exploit patterns.
Within a CLI trading workflow, this skill serves as the due diligence layer before committing capital to any DeFi yield strategy. Pair it with on-chain data feeds to pull current APYs, TVL trends, and token emission schedules, then let the agent apply its yield classification and risk scoring to produce a structured assessment. This is especially valuable for comparing opportunities across chains and protocols where headline APY numbers are misleading without understanding the underlying yield source and associated risks.
For the complete methodology — including formulas, decision trees, worked examples, and validation checklists — see the full DeFi Yield skill guide.