securely transfer assets between Ethereum and Etherlink, leveraging trust-minimized bridging tech
Etherlink Fusion+ is the world's first implementation of 1inch's revolutionary gasless cross-chain swap protocol on Etherlink's ultra-fast Layer 2. This project eliminates the three biggest pain points in cross-chain DeFi: high gas fees, slow confirmations, and MEV attacks. Core Innovation: We've built a complete cross-chain bridge that allows users to swap tokens between Etherlink and other EVM chains (Ethereum, Arbitrum, Optimism, etc.) with zero gas fees, sub-500ms confirmations, and 100% MEV protection
How it works: Users create swap orders that trigger Dutch auctions where professional resolvers compete to fill them at progressively better rates. The system uses Hash Time-Locked Contracts (HTLC) for atomic guarantees, ensuring users either get their desired tokens or a full refund. All gas fees are paid by resolvers, making cross-chain swaps completely free for end users.
We built a three-tier system: Smart Contracts (Solidity), Cross-chain Relayer (TypeScript/Node.js), and Frontend Interface (React/TypeScript).
Smart Contracts (/contracts/) Core Technology: Solidity 0.8.24 with OpenZeppelin libraries Key Contracts: HTLCEtherlinkEscrow.sol (612 lines): Production-ready HTLC implementation with Dutch auction integration, supporting both native XTZ and ERC20 tokens. Features include MEV protection, emergency recovery, and partial fill support using Merkle trees. FusionResolver.sol (200+ lines): Resolver management contract handling order acceptance, cross-chain coordination, and timeout recovery mechanisms.
Relayer Service (/relayer/) Core Technology: TypeScript, Viem (Ethereum client), WebSocket, Express.js Key Components: EtherlinkService.ts: Native Etherlink integration using Viem with custom chain definitions for Etherlink mainnet/testnet FusionService.ts: 1inch Fusion+ API integration with retry logic and rate limiting RelayerService.ts: Cross-chain event monitoring and atomic settlement orchestration
Frontend Interface (/frontend/) Core Technology: React 18, TypeScript, Vite, Tailwind CSS, Framer Motion Key Components: SwapInterface.tsx: Main swap interface with network/token selection and Dutch auction visualization DutchAuctionDisplay.tsx: Real-time auction progress with rate calculations and countdown timers TokenSelector.tsx & NetworkSelector.tsx: Professional token/network selection with search and filtering
1inch Fusion+ Protocol: We integrated with 1inch's Fusion+ API for order management and Dutch auction mechanisms. This provides the battle-tested infrastructure for gasless swaps while we focus on Etherlink-specific optimizations. Etherlink Network: Deep integration with Etherlink's EVM-compatible Layer 2, leveraging its sub-500ms confirmation times for real-time auction updates and instant user feedback.