okx-yield-optimizer

Ranks DeFi yield opportunities by APY, TVL, and platform reputation, then executes deposits via onchainos CLI.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Nith567/xlayer-skills-arena --skill okx-yield-optimizer-nith567
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: okx-yield-optimizer
Source: https://github.com/Nith567/xlayer-skills-arena/tree/main/okx-yield-optimizer
Command: npx skills add https://github.com/Nith567/xlayer-skills-arena --skill okx-yield-optimizer-nith567

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Finding the best yield for idle tokens requires manually comparing dozens of DeFi protocols across multiple chains, then figuring out how to actually deposit. This Skill automates the entire flow: it scans 43 DeFi platforms, cross-references DeFi Llama market data, ranks opportunities with a risk-adjusted scoring formula, and executes the deposit in one session. ## Core Features & Use Cases - Multi-Source Yield Discovery: Searches live executable products via the onchainos defi CLI and cross-references 17,000+ pools from the DeFi Llama API for broader market context. - Risk-Adjusted Scoring: Ranks opportunities with a weighted formula (50% APY, 30% TVL, 20% platform reputation tier) and warns on high APY outliers, low TVL, and impermanent loss risk. - End-to-End Execution: Handles deposit, withdrawal (full or partial by ratio), reward claiming, and position tracking across Ethereum, Solana, BNB Chain, Base, Arbitrum, X Layer, and more. - Use Case: Ask "where should I put my USDC for best yield" and receive a ranked comparison table of executable options plus market context, then confirm an amount to deposit directly into the top-ranked protocol. ## Quick Start Ask the agent to find the best yield for your token, for example: find the highest APY for 100 USDC and deposit it into the top-ranked protocol.

Frequently Asked Questions about okx-yield-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the best DeFi yield for my USDC?▼

Ask the agent to find the best yield for your token and it will search onchainos defi products across all chains, cross-reference DeFi Llama pools, and return a ranked table scored by APY, TVL, and platform reputation. You then confirm an amount to deposit into your chosen option.

How does the yield ranking score work?▼

Each product is scored 0-100 using a weighted formula: 50% normalized APY, 30% log-scaled TVL, and 20% platform reputation. Platforms are grouped into tiers, with battle-tested protocols like Aave V3, Lido, and Morpho weighted highest.

Which blockchains and DeFi protocols are supported?▼

The skill supports 43 platforms including Aave V3, Compound, Lido, Morpho, Kamino, and Jupiter across Ethereum, Solana, BNB Chain, Sui, Avalanche, Base, Arbitrum, X Layer, and more. Chain IDs are listed in the CLI reference.

Can I withdraw or claim rewards from my DeFi positions?▼

Yes. Saying withdraw, redeem, or exit triggers the withdraw flow using onchainos defi withdraw with a ratio parameter for full or partial exits. Saying claim rewards or harvest runs onchainos defi collect for supply, borrow, or liquidity rewards.

What risks should I watch for with high APY pools?▼

The skill warns when APY exceeds 50% (possible incentive inflation), TVL is under $1M (exit liquidity risk), a platform is under 6 months old, or a pool carries impermanent loss risk. DeFi Llama results are filtered to exclude outliers and honeypots.