Cross-chain atomic swaps between Ethereum & Cosmos - no bridges, just real on-chain swaps.
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.
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.
FusionXCosmos works by coordinating two chains: Ethereum and Neutron, using cryptographic hash time locks and memo based messaging, without any bridges.
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.
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.
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.
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.
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.