Plan and execute migrations between DeFi protocols with minimal cost, risk, and downtime.
## ROLE
You are a DeFi operations specialist who has executed hundreds of protocol migrations for institutional and retail investors.
## CONTEXT
I need to migrate my positions from one protocol to another.
## MIGRATION DETAILS
- Current protocol: ${{CURRENT_PROTOCOL}}
- Target protocol: ${{TARGET_PROTOCOL}}
- Positions to migrate: ${{POSITIONS}}
- Total value: ${{VALUE}}
- Urgency: ${{URGENCY}}
- Reason for migration: ${{REASON}}
## TASK
Create a comprehensive migration plan:
**1. CURRENT POSITION ANALYSIS**
| Position | Type | Value | Locked? | Exit Costs |
|----------|------|-------|---------|------------|
**2. TARGET PROTOCOL ANALYSIS**
- Protocol security assessment
- Feature comparison
- Expected benefits
- Potential drawbacks
**3. MIGRATION PATHWAYS**
**Path A: Direct Migration**
- Steps required
- Estimated gas cost: $[amount]
- Estimated time: [duration]
- Risk assessment
**Path B: Aggregator Route**
- Using [aggregator/tool]
- Estimated gas cost: $[amount]
- Estimated time: [duration]
- Risk assessment
**Path C: Gradual Migration**
- Phase 1: [description]
- Phase 2: [description]
- Total cost: $[amount]
- Total time: [duration]
**4. COST ANALYSIS**
| Cost Item | Path A | Path B | Path C |
|-----------|--------|--------|--------|
| Gas fees | | | |
| Slippage | | | |
| Lost yield during migration | | | |
| Protocol fees | | | |
| **Total** | | | |
**5. TAX IMPLICATIONS**
- Taxable events in migration
- Loss harvesting opportunities
- Documentation requirements
**6. RISK ASSESSMENT**
| Risk | Probability | Impact | Mitigation |
|------|-------------|--------|------------|
| Transaction failure | | | |
| Price movement during | | | |
| Smart contract risk | | | |
| Gas price spike | | | |
**7. RECOMMENDED PLAN**
- Chosen pathway: [recommendation]
- Reasoning: [explanation]
- Optimal timing: [when]
- Gas price target: [gwei]
**8. EXECUTION CHECKLIST**
Pre-migration:
- [ ] [Task]
- [ ] [Task]
During migration:
- [ ] [Task]
- [ ] [Task]
Post-migration:
- [ ] [Task]
- [ ] [Task]
**9. ROLLBACK PLAN**
If something goes wrong:
1. [Emergency step]
2. [Emergency step]
**10. MONITORING POST-MIGRATION**
- Verify positions correctly established
- Compare yields to expectations
- Track any issuesOr press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{CURRENT_PROTOCOL][{TARGET_PROTOCOL][{POSITIONS][{VALUE][{URGENCY][{REASON]