project screenshot 1
project screenshot 2
project screenshot 3

FusioonX

Trustless cross-chain swaps between Aptos and Base using 1inch

FusioonX

Created At

Unite Defi

Project Description

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.

How it's Made

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.

  1. Smart Contracts Aptos Side:

Written in Move, we built a fully-featured HTLC module (htlc_addr::fusionx) that:

  1. Allows creation of source and destination escrows via resource accounts.
  2. Supports hashlock and timelock enforcement.
  3. Ensures token type safety with TypeInfo.
  4. Handles unlocking with secrets, and cancellation with refund post-expiry.
  5. Uses SignerCapability to securely manage escrow accounts.
  6. Integrated safety deposit mechanism using AptosCoin for both sides.
  7. Exposes get_order_details() and get_latest_order_id() for off-chain consumption.

Custom Token:

  1. We deployed and tested a custom token called FXT on Aptos, used in our swaps.

Base Side (EVM):

  1. We used 1inch’s Fusion+ Escrow and Limit Order contracts, specifically:

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.

  1. Relayer & Resolver System Our backend is split into two cooperating services:

Relayer: Users send signed swap orders (off-chain) to the Relayer, which:

  1. Stores order metadata in a PostgreSQL database.
  2. Listens for onchain events on both Aptos and Base.
  3. Coordinates the secret propagation process.
  4. Confirms escrow creation by checking both chains.
  5. Requests the user to reveal their secret at the right stage.

Resolver: Runs a custom matching logic engine that:

  1. Continuously polls the relayer for new orders.
  2. Applies matching rules (amounts, tokens, deadlines, routes).

Once a match is found, it:

  1. Creates destination escrows on both Aptos and Base.
  2. Shares escrow addresses with the relayer.
  3. Once the user reveals the secret, the resolver:
  4. Polls for it via relayer.
  5. Withdraws tokens on both chains, atomically completing the swap.

We wrote Move unit tests to validate the escrow lifecycle:

  1. Order creation, claiming with secrets, refund on expiry.
  2. Token balance checks and address validation.
  3. etc

For EVM, we tested using Sepolia and 1inch’s public contracts.

background image mobile

Join the mailing list

Get the latest news and updates