Skip to main content

System Overview

The EMPX system consists of two core smart contracts that work together to provide advanced DEX aggregation and automated limit order execution on EVM-compatible blockchains.

Architecture Components

The system architecture is designed for modularity and security:

  1. EMPXRouter: Handles the logic for finding the best price across multiple DEXs and executing swaps.
  2. LimitOrderEscrow: Manages user funds, order states, and interacts with the Router to execute trades when conditions are met.
  3. Adapters: Individual contracts that interface with specific DEX protocols (Uniswap, SushiSwap, etc.), allowing the Router to be protocol-agnostic.

Key Features

  • Multi-Strategy Routing: Support for converge swaps (split-merge) and standard split routing.
  • Bidirectional Limit Orders: Both buy-low and sell-high order types with sophisticated execution logic.
  • Partial Fill Support: Five fill modes from no-partial to flexible execution strategies.
  • Dynamic Fee Structure: Differentiated fees for volatile vs. stable token pairs.
  • Security First: Comprehensive reentrancy protection, adapter validation, and emergency pause functionality.
  • Gas Optimization: Efficient dust handling and minimal storage operations.