Hyperlane ⏩ (@hyperlane): Deep Dive into Superswaps: One-Click Cross-Chain Token Swaps
Estimated coin impact
Scores are not price-change percentages. High impact means a score of +70 or more, or -70 or less.
Impact unavailable
Deep Dive into Superswaps: One-Click Cross-Chain Token Swaps Cross-chain swaps have always been a pain point for users. To move from one token on one chain to another on a different chain, you typically have to juggle multiple transactions: swap, bridge, switch networks, swap again. It’s easy to make mistakes, and the process feels anything but smooth. Superswaps, developed by Velodrome using Hyperlane’s interoperability framework, reduce all of this to a single click. Instead of users managing each step, the Superswap coordinates everything in the background: bridging assets, passing messages, and executing the final swap. The result is a clear, one-click experience that hides the complexity without sacrificing security. This article explains how Superswaps works under the hood using Hyperlane components including Interchain Accounts (ICAs), Hyperlane Warp Routes (HWR), and the Offchain Lookup Interchain Security Module (ISM). Overview Superswaps is a cross-chain swapping mechanism developed by Velodrome to enable one-click token swaps across the Superchain ecosystem. Instead of requiring users to bridge assets manually and perform separate swaps on different chains, Superswaps uses Hyperlane's interoperability stack to provide multiple cross-chain, asynchronous, composable transactions via a one-click and a MEV-resistant swapping experience. Before we get into how Superswaps works, let's discuss the challenges there are today. Problem As a user, cross-chain swaps typically require multiple steps. Let's say you have Token A on Chain A and want to end up with Token B on Chain B. This generally requires: Swap tokens on Chain A (e.g., OP to USDC on Optimism) Manually bridge tokens to Chain B (e.g., Base) Switch to Chain B Swap again into the desired asset (e.g., USDC to DAI) This multi-step flow creates several issues. The user experience is complex, with repeated transactions, wallet confirmations, and constant chain switching. On top of that, liquidity is fragmented across different chains, which can lead to worse prices compared to staying on a single network, or even to transaction failures. Solution: Superswaps with Hyperlane Superswaps simplifies this entire process, making it a single click for the user by leveraging Hyperlane's open interoperability framework. Key Components Interchain Accounts (ICAs): Allow a contract on Chain A to execute arbitrary logic on Chain B Hyperlane Warp Routes (HWR): Bridge assets between chains OpenUSDT (oUSDT): Interchain stablecoin used to transfer value between chains Offchain Lookup ISM: Provides a way to verify Hyperlane messages using data that's stored off-chain, which can be fetched and verified when needed Superswap Flow (Step-by-Step) Let's say a user wants to swap OP on Optimism → USDC on Base. Step 1: User initiates Superswap on Optimism (Origin Chain) User signs one transaction via the Velodrome UI. Behind the scenes, Velodrome: Swaps user's OP → oUSDT (on Optimism), and prepares an ICA call to execute a swap on Base Step 2: Hyperlane handles bridging and messaging Once the user has signed the single Superswap transaction, the cross-chain orchestration is handled by Hyperlane's interoperability framework. The Relayer (a permissionless off-chain agent) is responsible for carrying three distinct messages across the chains. Each message plays a different role, ensuring tokens move, instructions are committed securely, and execution happens only when verified. 1️⃣ oUSDT is bridged via HWR oUSDT, the intermediary token that powers Superswaps, is bridged from origin chain (Optimism) to destination chain (Base) and delivered into the user’s ICA on Base. This ensures that the ICA on Base holds the tokens required for the swap. 2️⃣ Commitment Message (hash of swap details) The second message is the commitment. Instead of sending the full swap details, this message only includes a hash of the swap instruction (for example, "swap oUSDT → USDC"). This message is sent through Hyperlane’s ICA Router to be processed by the Offchain Lookup ISM (a security module that can fetch data from external sources when needed). The ISM stores the hash onchain as a public record of what was committed, while keeping the actual swap parameters hidden. The full swap calldata is not placed onchain at this stage. Instead, it is stored offchain on a gateway service. Only the relayer that paid gas fees via Hyperlane's Interchain Gas Payment (IGP) system can retrieve it, and it must authenticate itself with an ECDSA signature before accessing the data. This protects the swap from MEV by keeping swap details hidden until final execution. 3️⃣ Reveal & Execute Message (full swap details) The third message is the reveal and execute step. This message is passed into the Destination ICA Router, which in turn calls the Offchain Lookup ISM. The Reveal message itself doesn't include the full calldata. Instead, it contains a pointer to the offchain gateway plus the relayer's signed proof, which authenticates it as the correct courier. The Offchain Lookup ISM then triggers an offchain lookup. This step fetches the swap calldata from the gateway and returns it back. The ISM recomputes the hash of this calldata and checks it against the earlier commitment stored onchain. If the two match, the message is verified. Finally, the Sender ICA on the destination chain calls the swap function. With the tokens already in place from the HWR, and the calldata now verified, the ICA executes the swap on the destination chain, converting the oUSDT into USDC. Putting it Together Superswaps come together through three coordinated steps. First, HWR move the tokens across chains. Next, a Commitment Message records a hash of the swap details onchain, keeping the specifics hidden until execution. Finally, a Reveal Message fetches the full swap data from offchain, verifies it against the earlier commitment, and carries out the swap on the destination chain. ICA Architecture Overview This diagram shows how ICAs work within Superswaps: the Origin Chain dispatches commitment and execution messages, the Offchain infrastructure (Velodrome Gateway and Relayer) coordinates data retrieval and message passing, and the Destination Chain executes swaps through the ICA. Result: One-Click Cross-Chain Token Swaps With Superswaps, users receive tokens on the destination chain with a single click No need to manually bridge No need to switch networks No need to execute multiple transactions as the user Swap is protected from MEV This shows what’s possible when cross-chain interoperability is handled behind the scenes. The user now has a simple and seamless experience. Ready to build your own cross-chain applications? Head over to Hyperlane's Interchain Accounts docs to get started!