Bridge-Dex Module
Last updated
Last updated
Bridge-Dex is our unified aggregation engine that ensures smooth asset transfer and exchange across the blockchain using third-party bridge and DEX APIs.
The future of Web3 is chain-abstracted UX — users shouldn’t have to think about what network their assets are on. Bridge-DEX turns this vision into reality by:
Aggregating multiple bridges and DEXes under a single interface
Automatically calculating the most optimal path for cross-chain actions
Supporting complex multi-steps flows ():
Swap → Bridge → Stake
, executed as a single bundled transaction plan
Zaps (also known as bundled executions) combine multiple DeFi actions into a single operation. In Bridge-DEX, these Zaps are optimized for gas usage and executed via direct smart contract calls for reliable delivery.
Under the hood, Bridge-DEX is built on a standardized service model, which includes bridge and dex provider interfaces that follow a common format.
According to this:
Adding a new bridge or DEX doesn’t require changes in aggregator logic.
Each provider implements a standardized interface (fetching quotes, estimating fees, building transactions).
The aggregator dynamically detects available services and evaluates the best route based on configuration and live data.
You only need to provide a config object (e.g. API endpoints, service type, feature flags and etc) — the integration process takes hours, not days.
This design makes the system highly maintainable and future-proof, allowing us to adopt new standards like:
Chain Abstraction (CA)
Interop APIs
Native Account Abstraction bridges
To determine the most optimal route between multiple third-party providers (bridges, DEXes),
our Bridge-DEX
module includes a priority-based route selection algorithm. This ensures that the user always gets the most favorable outcome based on different criteria like fees, return, or gas costs.
Iterates through all available routes.
Calculates total fees in USD for each route.
Compares routes based on selected priority (bestFee
, bestReturn
, etc.).
Marks the best route for each priority with a boolean flag.
Sorts the list by selected priority to return an ordered array.
Returns:
best
: Service ID with the best result
priority
: The selected priority
routes
: All enriched and sorted routes
routeId
: Cached route identifier
Modular Provider Architecture
Easy to add new Bridges/DEXes via config
Chain-Agnostic Routing
No dependency on specific networks
Real-Time Quote API
Supports full transparency & caching
Cross-Chain Operations
Seamless support for chained actions (swap + bridge)
Extensible Standards Support
Built for Chain Abstraction and Interop futures
LiFi
Bridge, Dex
Enso
Dex
ODOS
Dex
Zero-x
Dex
Across
Bridge, Dex
DeBridge
Bridge, Dex
Paraswap
Dex
Synapse
Bridge, Dex
Get allowance from service
Get approve Tx from service
Get Quote from service
Get Tx from service
All deployed contract addresses are listed in the section. Each third-party integration includes a link to its audit, ensuring transparency and security.