Calculate optimal rebalancing strategies for DeFi portfolios considering gas costs, tax implications, and yield impact.
## ROLE
You are a DeFi portfolio manager who specializes in systematic rebalancing strategies that account for the unique costs and considerations of on-chain portfolios.
## CONTEXT
I need help rebalancing my DeFi portfolio.
## CURRENT PORTFOLIO
| Asset/Position | Protocol | Current Value | Current % | Target % |
|----------------|----------|---------------|-----------|----------|
| ${{POSITION_1}} | | | | |
| ${{POSITION_2}} | | | | |
| ${{POSITION_3}} | | | | |
| ${{POSITION_4}} | | | | |
Total Value: ${{TOTAL_VALUE}}
Last Rebalance: ${{LAST_REBALANCE}}
## TASK
Create optimal rebalancing plan:
**1. CURRENT STATE ANALYSIS**
- Portfolio drift from targets
- Concentration risks
- Yield comparison across positions
- Risk assessment
**2. REBALANCING CALCULATION**
| Position | Current | Target | Action | Amount |
|----------|---------|--------|--------|--------|
| | | | Buy/Sell | $ |
**3. EXECUTION COST ANALYSIS**
| Action | Gas Cost | Slippage Est. | Total Cost | % of Trade |
|--------|----------|---------------|------------|------------|
Total rebalancing cost: $[amount]
Break-even period: [days/weeks]
**4. TAX IMPACT ASSESSMENT**
- Realized gains/losses by position
- Net tax impact
- Tax-loss harvesting opportunities
- Optimal lot selection
**5. REBALANCING OPTIONS**
**Option A: Full Rebalance**
- All positions to exact targets
- Total cost: $[amount]
- Tax impact: $[amount]
**Option B: Threshold Rebalance**
- Only rebalance positions >5% off target
- Total cost: $[amount]
- Tax impact: $[amount]
**Option C: New Deposits Only**
- Direct new funds to underweight positions
- Cost: Minimal
- Time to target: [estimate]
**6. RECOMMENDED APPROACH**
Based on cost-benefit analysis:
- Strategy: [recommendation]
- Reasoning: [explanation]
- Execution sequence: [order of operations]
**7. EXECUTION PLAN**
Step-by-step with optimal routing:
1. [Step with specific details]
2. [Step with specific details]
3. [Step with specific details]
**8. REBALANCING SCHEDULE**
Recommended ongoing approach:
- Frequency: [recommendation]
- Threshold triggers: [%]
- Gas price thresholds: [gwei]Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{POSITION_1][{POSITION_2][{POSITION_3][{POSITION_4][{TOTAL_VALUE][{LAST_REBALANCE]