Cross-chain atomic swaps between Ethereum and Sui using Fusion+
YasoSui: Secure, Decentralized Cross-Chain Token Swaps
YasoSui is a pioneering platform that enables seamless, trustless token exchanges between Ethereum and Sui blockchains. By leveraging atomic swaps, YasoSui eliminates the need for centralized intermediaries, empowering users with secure, peer-to-peer trading.
Why YasoSui?
Traditional cross-chain solutions rely on centralized bridges or wrapped tokens, introducing risks like hacks or counterparty fraud. YasoSui solves this by enabling direct token swaps through atomic swaps, ensuring that either both parties receive their tokens or neither does—guaranteeing fairness and security.
How It Works
Create an Order: Makers deposit tokens into a secure escrow smart contract on Ethereum or Sui. Accept and Swap: Takers accept the order, and both parties use a SHA3-256 hashlock to lock their tokens.
Secure Completion: Tokens are swapped simultaneously across chains, or the transaction is canceled if conditions aren’t met, with time-locked safeguards to prevent funds from being stuck.
Core Features
Unbreakable Security: Atomic swaps with SHA3-256 hashlock ensure trustless exchanges, eliminating fraud and counterparty risk.
Cost Efficiency: Deterministic escrow addresses and gas-optimized Ethereum contracts minimize transaction costs.
Fast and Flexible: Support for ERC20 tokens and native assets (ETH, SUI) with real-time order tracking for a smooth user experience.
Stuck Swap Protection: Time-locked cancellation ensures funds are returned if a swap doesn’t complete.
User-Friendly Interface: A Next.js-powered web app with dual wallet integration (Ethereum and Sui) for seamless navigation.
Technical Foundation
Ethereum: Custom escrow factory smart contracts optimized for low gas fees. Sui: Native Move contracts for efficient escrow management. Cross-Chain Resolver: Coordinates secure communication between blockchains for reliable swaps.
Who Benefits?
Traders: Swap tokens directly between Ethereum and Sui without relying on centralized exchanges, reducing fees and risks.
DeFi Developers: Integrate YasoSui’s atomic swap protocol for secure cross-chain functionality in your dApps.
Web3 Users: Enjoy a decentralized, transparent, and intuitive platform for managing cross-chain assets.
Technology Stack Frontend: Next.js 15 with TypeScript, Tailwind CSS, tRPC Blockchain: Solidity (Foundry) for Ethereum, Move for Sui Backend: Prisma ORM with PostgreSQL
Architecture Monorepo with turborepo
Cross-chain System: Resolver contract manages swap states SHA3-256 hashlock ensures atomicity CREATE2 for deterministic escrow addresses
Smart Contracts: Factory pattern for escrow deployment Time-locked cancellation mechanisms Event emission for UI updates
Frontend: Dual wallet integration (MetaMask + Sui Wallet) Real-time order tracking Type-safe APIs with tRPC
Technical Highlights CREATE2 for gas-efficient deterministic addresses tRPC for end-to-end type safety 1inch cross-chain SDK integration Modular architecture for easy blockchain expansion