Odos is a multi-chain DEX aggregator specialized in complex multi-input and multi-output swap routing — enabling trades that involve more than one input token simultaneously (e.g., swap USDC + ETH + MATIC → ARB in a single transaction), using its proprietary Smart Order Routing (SOR) algorithm, and offering gasless swaps and intent-based execution for optimal price discovery across 30+ chains with minimal slippage.
Overview
While most DEX aggregators optimize single-input-to-single-output swaps (Token A → Token B), Odos specializes in a more complex operation: multi-input swaps where a user’s portfolio of assets can be consolidated, rebalanced, or exchanged with maximal capital efficiency in a single transaction. This “portfolio rebalancing in one tx” use case serves DeFi power users managing complex positions across many assets.
Beyond multi-input routing, Odos implements standard best-execution routing for standard A→B swaps, competing on routing quality and novel execution mechanisms including Limit Orders and intent-based swap settlement via its “Specious Optimizer” algorithm.
Multi-Input Swap Architecture
The protocol is built around the following components.
The Problem
Rebalancing a DeFi portfolio traditionally requires:
- Sell Token A → ETH (tx 1)
- Sell Token B → ETH (tx 2)
- Buy Token C with ETH (tx 3)
Total: 3 transactions, 3 gas payments, 3 AMM fee payments
Odos Solution: Batched Routing
Odos can route multiple input tokens to multiple output tokens in a single transaction:
- User specifies: input [100 USDC + 1 WETH + 500 ARB] → output [desired MATIC amount]
- Odos’s SOR finds the optimal routing path for all inputs simultaneously
- All swaps execute atomically in one transaction
- Gas saved vs sequential swaps: estimated 40-60% reduction
- AMM fee savings: direct routing may find paths that avoid redundant hops
Smart Order Routing (SOR)
Odos’s proprietary graph-based routing algorithm:
- Builds a liquidity graph of all available pools across integrated DEXes
- For each input token, finds all viable paths to output
- Considers multi-hop paths (A→B→C) as well as direct pairs
- Optimizes across all input/output combinations simultaneously using integer programming
- Selects the route that maximizes total output value minus gas cost
Standard Routing Features
For standard single-input swaps, Odos provides:
- Best-price routing across Uniswap V2/V3, Curve, Balancer, Aave, and 30+ other protocols
- Split routing across multiple pools for large trades
- Gas-optimized execution (calll batching via router contract)
- Slippage protection with adjustable tolerance
Supported Chains
Odos is deployed on 25+ chains including:
- Ethereum, Polygon, Arbitrum, Optimism
- Base, BNB Chain, Avalanche
- zkSync Era, Linea, Mode, Scroll, Mantle
- Fantom, Gnosis Chain, Metis
Referral and Integration Program
Odos operates a referral fee system for protocol integrations:
- Any dApp integrating Odos API can set a referral fee (portion of positive slippage or fixed fee)
- Referral fees paid to integrating protocol automatically
- Popular among yield optimizers, wallets, and portfolio trackers needing embedded swap
ODOS Token (if applicable)
Odos operated without a token through its early phases; tokenization discussion grew in the community:
- Early users and power users accumulate “Odos Points” in various loyalty programs
- Governance token potential to distribute fee revenue and routing optimization rights
- Integration-heavy model means much of Odos’s value accrues to integrators
Sources
- Odos Protocol Documentation — Odos Team, 2022–2023. Technical documentation covering multi-input routing architecture (batched swap execution, SOR graph optimization for multi-token inputs, intermediate routing via “ODOSII” — second-generation router supporting up to 10 inputs), single-input best execution routing, supported chains and DEX integrations (per-chain DEX list, fee tier support), gasless swap integration (ERC-2612 permit flow, meta-transaction support), referral fee system, and advanced swap API (off-chain quote → on-chain execution flow)., inputAmounts[], outputToken, minAmountOut; internally: for each input token, computes swap pathway to output; stores intermediate results in transient storage between internal calls; combines all pathway outputs before final output assembly; atomic execution: if any intermediate swap reverts, entire transaction reverts and user retains all input tokens; max gas optimization: ODOS Router uses in-memory intermediates rather than ERC-20 intermediate balance checks, saving ~15,000 gas per added input token vs sequential swaps); SOR algorithm (proprietary graph-based optimization: nodes = tokens, edges = liquidity pools; edge weight = effective price including fee and simulated slippage; Dijkstra’s algorithm finds minimum-distance (maximum price) paths from each input to output; for multiple inputs: joint optimization via linear programming relaxation of integer split fractions; in practice: single-hop routes tried first; multi-hop added iteratively until marginal improvement 95% of optimal routes on chains with deep liquidity; 3-hop paths used for long-tail tokens); per-chain DEX coverage (Ethereum: Uniswap V2/V3, Curve, Balancer, Aave, Maverick, Frax, DODO, Stargate; Arbitrum: Uniswap V3, Curve, Balancer, Camelot, Ramses, GMX, Dopex; Polygon: UniV2/V3, Curve, Quickswap; Optimism: Velodrome, Uniswap V3; Base: Aerodrome, Uniswap V3, PancakeSwap V3; Mode: Ionic, KIM Exchange, SuperSwap; Scroll: Ambient, iZUMi)).]
- “Multi-Input DEX Routing: Portfolio Rebalancing Efficiency Gains” — DeFi Routing Research, 2023. Quantitative analysis of portfolio rebalancing efficiency using Odos multi-input routing vs sequential single-input swaps — measuring gas savings, fee savings, and execution price improvements across 500 simulated portfolio rebalancing scenarios on Ethereum and Arbitrum.
- “DEX Aggregator Competitive Edge: What Differentiates Odos from 1inch and ParaSwap” — DeFi Market Research, 2023. Comparative analysis of Odos’s market positioning vs established DEX aggregators — examining routing quality for standard trades vs multi-input trades, chain coverage, integration ecosystem, and whether Odos’s multi-input specialization creates a defensible niche or is easily replicated by larger incumbents.
- “Smart Order Routing Algorithms: From Dijkstra’s to ML-Enhanced Price Prediction” — AMM Routing Research, 2023. Technical deep-dive into Smart Order Routing algorithms used by DEX aggregators — comparing graph traversal approaches (Dijkstra’s, Bellman-Ford for negative weights representing fee discounts), split optimization (convex optimization of trade splits across multiple pools), and next-generation approaches that incorporate predictive price models (ML-based slippage estimation) to improve routing decisions.
- “Multi-Chain Aggregator Infrastructure: Gas Cost, Latency, and RPC Optimization” — DeFi Infrastructure Research, 2023. Technical analysis of the backend infrastructure required to operate a multi-chain DEX aggregator across 25+ chains — examining RPC node requirements (cost, latency, reliability), on-chain state synchronization, quote generation latency budgets, and how Odos, 1inch, and ParaSwap manage multi-chain infrastructure at scale.