Yield Farming Automation
Automated yield farming: monitor APY, compound rewards, rebalance pools, and optimize gas.
Complexity: Complex | Duration: 15-30m | Category: Finance/Investment
Tags: yield-farming defi apy compounding liquidity-pools
Workflow Diagram
Steps
Step 1: Opportunity Scan
Agent: yield
optimizer - Scan DeFi protocols for high-yield farms
Step 2: APY Comparison
Agent: financial
analyst - Compare APY across protocols (adjust for IL)
Step 3: Risk Assessment
Agent: risk
analyst - Evaluate smart contract risk, rugpull risk
Step 4: Entry Calculation
Agent: defi
specialist - Calculate optimal LP token amounts
Step 5: Gas Optimization
Agent: blockchain
analyst - Execute when gas prices are low
Step 6: Position Entry
Agent: trade
executor - Stake in selected yield farm
Step 7: Reward Monitoring
Agent: defi
specialist - Track reward accrual
Step 8: Auto
Agent: Compound
yield-optimizer - Compound rewards automatically when profitable
Step 9: IL Tracking
Agent: defi
specialist - Monitor impermanent loss vs rewards earned
Step 10: Exit Strategy
Agent: risk
analyst - Set conditions for farm exit (APY drop, high IL)
Step 11: Approval
Agent: code
reviewer - Human approval for new farm entries
Usage
To execute this workflow:
/workflow finance/investment/yield-farming-automation.workflow
Related Workflows
See other workflows in this category for related automation patterns.