project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

FusionXCosmos

Cross-chain atomic swaps between Ethereum & Cosmos - no bridges, just real on-chain swaps.

FusionXCosmos

Created At

Unite Defi

Project Description

FusionXCosmos is a production ready system that enables atomic swaps between Ethereum and Cosmos ecosystem chains. It lets users exchange tokens like ETH and NTRN without relying on bridges or third party trust. Instead, it uses cryptographic hash time locks to guarantee atomic execution meaning either both sides complete or nothing happens.

How it works:

  1. User locks ETH in a smart contract on Ethereum using a hashlock and timelock.
  2. Counterparty locks NTRN on Cosmos chain with the same hashlock.
  3. User claims the NTRN by revealing the secret.
  4. Counterparty claims the locked ETH by using the revealed secret.

Why this matters:

  1. Trustless swaps with no need for bridges or custodians.
  2. All or nothing execution guaranteed by cryptography.
  3. Works directly between Ethereum and Cosmos chains.
  4. User friendly interface hides the complex cryptography.
  5. All transactions happen live on Sepolia and Neutron testnets and are fully verifiable.

We built the Ethereum side with Solidity smart contracts that handle hash time locks and store Cosmos swap details on chain to prove intent. On Cosmos, instead of using CosmWasm contracts that had build issues, we coordinate swaps using memos in bank transactions, a pattern already used by production Cosmos chains like Osmosis.

The frontend uses React and Vite and integrates both MetaMask and Keplr wallets for a seamless user experience.

Looking ahead, we plan to add support for order books, more Cosmos chains, ERC20 tokens, and automated relayer networks to expand usability.

How it's Made

FusionXCosmos works by coordinating two chains: Ethereum and Neutron, using cryptographic hash time locks and memo based messaging, without any bridges.

Ethereum side:

We built custom Solidity contracts deployed on Sepolia testnet. The AtomicSwap contract handles locking ETH with hash time locks, while the CrossChainManager stores swap details including Cosmos recipient addresses and amounts, all on chain to keep the swap intent transparent and verifiable.

Cosmos side:

Due to Rust and CosmWasm compatibility issues, we avoided deploying new contracts on Neutron. Instead, we use a memo based approach in Cosmos bank send transactions. The memo contains swap metadata and coordinates the swap state across chains, a pattern inspired by Osmosis and other IBC enabled chains.

Frontend:

The app is built with React and Vite. It integrates MetaMask using Ethers.js to interact with Ethereum, and Keplr with CosmJS libraries for Cosmos. The app orchestrates swap steps sequentially locking ETH, locking NTRN, claiming tokens, and revealing secrets making sure everything happens in the right order and timing.

Our solution:

Memo based coordination replaced the need for complex CosmWasm contracts and works like real production chains.

We dynamically fetch contract minimum safety deposits to ensure swap amounts meet contract requirements.

Handling two very different wallet standards required careful async code and UI tweaks to keep the user experience smooth.

Tech stack:

Solidity, Ethers.js, CosmJS, React, Vite, Keplr, MetaMask, deployed on Sepolia and Neutron testnets, frontend hosted on Vercel.

This project proves you can build safe, fully trustless cross chain swaps without bridges using existing blockchain features, laying groundwork for next generation DeFi.

background image mobile

Join the mailing list

Get the latest news and updates