okx-yield-compounder

Collects DeFi rewards and reinvests them into yield positions via onchainos CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? DeFi rewards sit idle in protocols until manually claimed, so users lose the extra yield that compounding would generate, and manually collecting, swapping, and redepositing rewards across multiple chains is tedious and error-prone. ## Core Features & Use Cases - Automated Reward Collection and Reinvestment: Collects pending rewards via onchainos defi collect and reinvests them into the same or a higher-APY position, swapping reward tokens to deposit tokens when needed. - Compounding Math and Frequency Optimization: Shows effective compounded APY versus base APY and recommends daily, weekly, or monthly compounding based on gas costs versus reward size per chain. - Scheduled Auto-Compounding: Sets up recurring compounding jobs via CronCreate with minimum reward thresholds and gas-aware skip logic. - Use Case: A user with Aave V3 positions on X Layer and Morpho on Base asks to compound everything; the skill collects rewards on both chains, skips an Ethereum position where gas exceeds the reward, and reinvests the proceeds. ## Quick Start Ask the agent to compound all of your DeFi yield positions and schedule weekly auto-compounding.

Frequently Asked Questions about okx-yield-compounder

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

FAQPage Schema
How do I auto-compound DeFi rewards on Aave or Morpho?▼

The skill scans active positions with onchainos defi positions, collects pending rewards via onchainos defi collect, and reinvests them with onchainos defi invest. If the reward token differs from the deposit token, it swaps first using onchainos swap execute.

How often should I compound my DeFi yield position?▼

Frequency depends on gas cost versus reward size. On X Layer daily compounding is always worthwhile since gas is zero, Base and Arbitrum suit weekly compounding for positions over $100, and Ethereum suits monthly compounding for positions over $500.

Does auto-compounding work on Ethereum mainnet with high gas fees?▼

Yes, but the skill skips compounding when gas exceeds 10% of the reward value. On Ethereum it recommends monthly compounding for positions above $500 and weekly only above $5,000 to keep gas costs economical.

Can I schedule automatic compounding of my DeFi positions?▼

Yes, the skill uses CronCreate to schedule daily, weekly, or monthly compounding runs. Each run checks pending rewards, skips positions below the minimum threshold, and logs each collect and reinvest transaction.

What happens when the reward token differs from the deposit token?▼

The skill swaps the reward token into the deposit token using onchainos swap execute before reinvesting via onchainos defi invest. Unknown or risky reward tokens trigger a security check before the swap.