Trustless cross-chain swaps between Aptos and Base using 1inch
FusionX is a cross-chain swap protocol that lets users trustlessly exchange tokens between Aptos (a non-EVM, Move-based chain) and Base (an Ethereum L2), using 1inch’s Fusion+ infrastructure.
At its core, FusionX uses Hashed Timelock Contracts (HTLCs) to ensure both sides of the swap either complete or refund safely. When a user wants to swap tokens (say, from Aptos to Base), they lock their assets in a smart contract with a secret hash. On the other side, the protocol mirrors that intent using 1inch’s escrow contracts. When the secret is revealed, both parties can claim their funds — or get refunded if the time runs out.
We built a custom HTLC module on Aptos, leveraging Move’s strict resource model, and integrated directly with 1inch’s Limit Order Protocol and Fusion+ contracts on Base. A lightweight relayer coordinates the swap between chains, watching for swap events, propagating secrets, and ensuring both chains stay in sync.
The whole process is onchain, bidirectional, and designed to be fully trustless — no centralized bridges or middlemen. Our goal with FusionX is to make cross-chain liquidity between EVM and non-EVM ecosystems more accessible, secure, and developer-friendly.
FusionX is a cross-chain swap system between Aptos (Move) and Base (EVM), built on top of 1inch Fusion+ and powered by HTLCs, relayers, and resolvers. It’s designed to be modular, fully onchain, and extensible across different ecosystems.
Written in Move, we built a fully-featured HTLC module (htlc_addr::fusionx) that:
Custom Token:
Base Side (EVM):
Trust-minimized, modular, and well-audited contracts that handle the EVM half of the swap.
No need to reinvent escrow logic, allowing us to focus on cross-chain communication and integration.
Relayer: Users send signed swap orders (off-chain) to the Relayer, which:
Resolver: Runs a custom matching logic engine that:
Once a match is found, it:
We wrote Move unit tests to validate the escrow lifecycle:
For EVM, we tested using Sepolia and 1inch’s public contracts.