Design composable interfaces for DeFi protocol integration.
Composability Goals:
- Protocol Type: ${{PROTOCOL_TYPE}}
- Target Integrators: ${{INTEGRATION_TARGETS}}
- Complexity Level: ${{COMPLEXITY}}
- Security Requirements: ${{SECURITY_NEEDS}}
Composability Framework:
1. **Interface Design**
```solidity
// Standard interfaces
// Extension points
// Callback patterns
// Event emissions
```
2. **Integration Patterns**
- Direct integration
- Adapter pattern
- Aggregator support
- Flash loan compatibility
3. **Standard Compliance**
- ERC-4626 (Vaults)
- ERC-3156 (Flash loans)
- Custom standards
- Documentation
4. **Safety Mechanisms**
- Reentrancy guards
- Callback validation
- State consistency
- Access controls
5. **Developer Experience**
- SDK design
- Code examples
- Testing utilities
- Debugging tools
6. **Documentation**
- Integration guides
- API reference
- Security considerations
- Best practices
7. **Ecosystem Growth**
- Integration grants
- Co-marketing
- Technical support
- Partnership framework
Include integration examples and SDK design.Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{PROTOCOL_TYPE][{INTEGRATION_TARGETS][{COMPLEXITY][{SECURITY_NEEDS]