GitHub: https://github.com/tricodex/ethdam-2025/tree/master
Key Components:
- ROFLSwapV4 Smart Contract: Stores encrypted orders and handles final settlement on the Oasis Sapphire confidential EVM.
- ROFL App: Runs in a Trusted Execution Environment (TEE), providing hardware-level security and confidentiality for order matching.
- Order Matching Engine: Matches buy and sell orders based on price and quantity, operating entirely within the secure TEE.
- Settlement Engine: Executes matched trades on-chain while preserving privacy.
- Confidentiality: Orders remain encrypted, with matching logic protected inside the TEE, preventing front-running and MEV attacks.