fusion+monad

A 1inch Fusion+ bridge for trustless USDC swaps using a gas-efficient factory pattern.

Repo
fusion+monad banner

About

## Project Description

**Fusion Artery** is a production-aligned, trustless, and bidirectional atomic swap bridge connecting the **Ethereum Sepolia** and **Monad** testnets. Built for the **1inch Fusion+ bounty**, our project enables the seamless and secure transfer of **USDC** between these two cutting-edge EVM-compatible ecosystems.

Our core mission was not just to build a bridge, but to build it the right way. We have meticulously replicated the sophisticated, gas-efficient factory pattern used in the 1inch production protocol, demonstrating a deep understanding of the architecture required for secure and scalable cross-chain infrastructure.

---

## The Problem: Liquidity Fragmentation

In the emerging multi-chain world, liquidity is fragmented across diverse blockchain networks. A user with assets on a next-gen chain like **Monad** has no direct, trustless way to deploy that capital on Ethereum without relying on centralized or custodial solutions. This fragmentation leads to inefficiencies, lost opportunities, and security risks.

Existing bridges often suffer from:

* Custodial intermediaries

* Monolithic, inflexible designs * Poor developer experience and user trust

---

## Our Solution: A Trustless "Unique Lockbox" System

**Fusion Artery** offers a secure, **non-custodial**, and **atomic** pathway for value transfer. A user can initiate a swap of USDC on one chain (e.g., Ethereum Sepolia) and receive the equivalent on the other chain (Monad) **atomically**, or have the operation revert entirely if incomplete — no third party holds custody at any point.

The entire system is governed by smart contracts and an automated off-chain resolver to ensure full safety and transparency.

---

## System Components

### 1. On-Chain Smart Contract Architecture (The Foundation)

Instead of a monolithic design, we adopted the **factory + proxy pattern** as used by 1inch — a modular and gas-efficient approach.

* **EscrowFactory.sol**

Deployed once per chain (Ethereum Sepolia and Monad). It creates lightweight **EIP-1167 clones** of the escrow contract, acting like a "Lockbox Company" that issues secure, isolated lockboxes for each swap.

* **Escrow\.sol**

The master HTLC (Hashed Timelock Contract) implementation that governs atomicity. It enforces that funds are released **only** with a valid secret or refunded after a time-lock expiry. All clones delegate logic to this blueprint.

* **MockUSDC.sol**

A standard ERC20 contract deployed on both chains to simulate a realistic, controlled bridging environment.

---

### 2. The Off-Chain Resolver (The Automated Heart)

A stateless, fault-tolerant **Node.js** service written in **TypeScript** that operates the bridge logic in an automated, non-custodial manner.

* **Stateless & Resilient**:

Powered by **viem**, it predicts clone addresses using deterministic logic, avoiding the need for a database or centralized state.

* **Event-Driven Automation**:

Listens for `NewEscrow` events on Ethereum Sepolia and Monad. Upon detection, it deploys the corresponding escrow contract on the destination chain. When the user completes the withdrawal, revealing the secret, the resolver completes the atomic swap by claiming the original funds.

---

### 3. The Frontend dApp (The Human Layer)

Built using **Next.js**, **wagmi**, and **viem**, the dApp abstracts away complexity and delivers a smooth user experience.

* **Wallet Connection & Swap UI**:

Users connect wallets, enter the USDC amount, and follow a simple flow — approve and initiate.

* **Live Swap Tracking**:

The dApp tracks the progress in real-time with explorer links, making it transparent and intuitive for users.

---

## Key Technical Highlights & Features

* **Production-Aligned Architecture**:

We implemented the same advanced factory pattern used by 1inch in production.

* **Gas Efficiency**:

Minimal deployment costs using **EIP-1167** proxies and immutable variables.

* **Stateless Resolver**:

Fully restartable and resilient with zero reliance on stateful tracking.

* **Modern Type-Safe Stack**:

TypeScript, Hardhat, viem — ensuring strong typing, fast iteration, and maintainability.

* **Full Bidirectionality**:

The bridge supports swaps from **Ethereum Sepolia to Monad** and **Monad to Ethereum Sepolia** — atomic in both directions.

---

## Future Vision

This hackathon project lays the groundwork for a **secure, modular, and extensible cross-chain USDC bridge**. Future enhancements will include:

  • Supporting **any ERC20 token** with generalized factory deployment.
  • Expanding support to **more EVM-compatible chains** (e.g., Base, Linea, Polygon zkEVM).
  • Introducing a **decentralized resolver network** to eliminate off-chain trust and maximize uptime.
  • Optimizing for **Monad's high-throughput environment** with even leaner gas usage and faster finality.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

morethan1inch

Bidirectional USDC swaps between Ethereum and Monad using 1inch Fusion+ cross-chain escrows.

UniteSwap

Rust CLI enabling trustless atomic swaps between EVM & non-EVM chains via 1inch Fusion+ extension

FusionNSwap

A cross-chain atomic swap solution between Ethereum and NEAR using 1inch Fusion+.