Why EMPX uses a Hybrid approach combining Off-Chain Quoting with On-Chain Execution.
The Hybrid Advantage
EMPX employs a hybrid architecture that leverages the best of both worlds: the speed and computational power of off-chain servers for finding the best routes, and the security and trustlessness of on-chain smart contracts for settling trades.
Comparison
| Feature | Hybrid (EMPX) | Pure On-Chain | Traditional Off-Chain |
|---|
| Price Discovery | Fast & Comprehensive (Off-chain) | Limited by gas/block limits | API-based |
| Routing | Complex & Optimal (Off-chain) | Simple paths only | Server-side |
| Execution | Atomic On-Chain | Atomic On-Chain | Often multi-step / Trusted |
| Security | Trustless Settlement | Trustless Settlement | Trusted Relayers/Servers |
| Cost | Gas Efficient (Computation off-chain) | High Gas (Computation on-chain) | Variable |
Execution Model
| Feature | EMPX Hybrid Approach |
|---|
| Routing Engine | Off-chain servers analyze thousands of pools to find the absolute best price, performing complex calculations that would be too expensive to do on-chain. |
| Settlement | Once the route is found, the trade is executed on-chain via the EMPX Router. This ensures the swap is atomic (all or nothing) and user funds are never in custody of the server. |
| Failure Handling | If the on-chain conditions (like slippage or balance) are not met during execution, the transaction reverts immediately, protecting the user. |
Speed & Efficiency
| Feature | EMPX Hybrid |
|---|
| Quote Time | Milliseconds (Off-chain indexers) |
| Execution Time | Single block (Direct interaction with contracts) |
| Route Finding | Can search deep and wide across many protocols without gas cost constraints. |
Security
| Feature | EMPX Hybrid |
|---|
| MEV Protection | Built-in resistance via optimized routing and slippage protection. |
| Custody | Non-custodial. The off-chain server never touches user funds. |
| Trust Model | Trustless execution. You verify the transaction data before signing. |