evm_compound_rewards
Automatically harvest pending DeFi farming rewards and re-stake them in the same vault or pool to compound returns across supported EVM chains.
Instructions
Auto-compound DeFi yield farming rewards for optimized returns.
Automatically harvests pending rewards and re-stakes them in the same vault/pool to maximize compound interest. Supports major yield aggregators across all 7 EVM chains.
CRITICAL RULES:
Requires gas in native token for transaction
May require multiple protocol interactions (harvest + stake)
Some protocols auto-compound (no action needed)
Minimum reward threshold prevents dust compounding
Transaction irreversible once confirmed
PARAMETERS:
chain: EVM chain to execute on (required)
Protocol must be deployed on this chain
Requires gas in native token
vaultOrPool: Vault or pool address (required)
Format: 0x followed by 40 hex characters
Must be valid farming contract
privateKey: Transaction signer's private key (required, KEEP SECRET)
Must be address with staked position
Never expose, share, or log
strategy: Compound strategy (optional, default: auto_compound)
claim_and_restake: Harvest rewards then deposit
auto_compound: Call protocol's compound function
harvest_only: Just claim rewards without re-staking
minReward: Minimum reward to compound (optional)
Prevents compounding dust amounts
In reward token units
Example: "0.1" to only compound if rewards > 0.1
EXAMPLES: ✅ Auto-compound Beefy vault: {chain: "polygon", vaultOrPool: "0x2b2C81e08f1Af8835a78Bb2A90AE924ACE0eA4bE", privateKey: "0xac0974...", strategy: "auto_compound"}
✅ Harvest and re-stake on Yearn: {chain: "ethereum", vaultOrPool: "0x...", privateKey: "0x...", strategy: "claim_and_restake", minReward: "0.5"}
✅ Just harvest rewards: {chain: "avalanche", vaultOrPool: "0x...", privateKey: "0x...", strategy: "harvest_only"}
❌ Invalid - insufficient gas: {chain: "polygon", ...} // No POL for gas
SUPPORTED EVM CHAINS (7 networks): • ethereum (Sepolia) - EIP-1559 enabled, ~12s blocks, moderate gas costs • polygon (Amoy) - Low fees, fast finality (~2s), layer 2 • avalanche (Fuji C-Chain) - Sub-second finality, dynamic fees • bsc (BNB Testnet) - 3s blocks, low gas costs, Binance ecosystem • arbitrum (Sepolia) - Optimistic rollup, low fees, Ethereum security • base (Sepolia) - Coinbase layer 2, EIP-1559, low fees • worldchain (World Sepolia) - World Network testnet, EIP-1559
CRITICAL GAS CONSIDERATIONS:
Ethereum: High gas costs, use gas oracle for timing
Polygon/BSC: Very low gas, safe for frequent transactions
Arbitrum/Base: L2 optimizations, ~10-50x cheaper than Ethereum
Avalanche: Dynamic fees, can spike during congestion
Always check gas price before executing transactions
TESTNET TOKENS: All chains use testnet tokens with NO REAL VALUE. Faucets available for all supported networks.
OUTPUT STRUCTURE: • success: Boolean indicating operation success • transactionHash: Transaction hash for tracking • rewardsHarvested: Amount of rewards claimed • rewardsCompounded: Amount re-staked • compoundBoost: Percentage increase in position • gasUsed: Gas consumed • executionTime: Time taken in milliseconds
COMMON MISTAKES:
Not having gas for transaction
Compounding dust amounts (use minReward)
Wrong strategy for protocol
Not waiting for pending transactions
USE CASES:
Maximize yield farming returns
Automate reward management
Optimize compound frequency
Batch harvest from multiple pools
SUPPORTED PROTOCOLS:
Beefy Finance: Auto-compounding vaults
Yearn Finance: Yield optimization
Harvest Finance: Automated farming
Autofarm: Multi-chain yield aggregator
Adamant Finance: Polygon vaults
Benqi: Avalanche lending/staking
Yield Yak: Avalanche auto-compounder
Alpaca Finance: Leveraged yield farming
Jones DAO: Arbitrum strategies
GAS COSTS:
Simple compound: 100,000-150,000 gas
Claim + restake: 200,000-300,000 gas
Ethereum Sepolia: ~0.002-0.003 ETH
Polygon: ~0.00005 POL (very cheap)
BSC: ~0.0001 BNB
Running on Linux.
LINUX-SPECIFIC NOTES:
Package manager: apt (Ubuntu/Debian), yum (RHEL/CentOS), or pacman (Arch)
Python 3 is typically 'python3' command
GNU tools are standard
Use 'xdg-open' command to open files/applications
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"vaultOrPool": "<vaultOrPool>",
"privateKey": "<privateKey>"
},
"name": "evm_compound_rewards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | EVM chain to execute on | |
| strategy | No | Compound strategy (default: auto_compound) | |
| minReward | No | Minimum reward amount to compound | |
| privateKey | Yes | Private key for transaction | |
| vaultOrPool | Yes | Vault or pool address to compound |