Design a decentralized perpetual futures protocol.
Protocol Specifications:
- Supported Markets: ${{TRADING_PAIRS}}
- Maximum Leverage: ${{MAX_LEVERAGE}}
- Margin Type: ${{MARGIN_MODEL}} (isolated/cross)
- Oracle Solution: ${{ORACLE_CHOICE}}
Protocol Components:
1. **Core Trading Engine**
```solidity
// Position…Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with ProReplace these placeholders with your own content before using the prompt.
[{TRADING_PAIRS][{MAX_LEVERAGE][{MARGIN_MODEL][{ORACLE_CHOICE]