xSynth Engine
Gasless cross-chain DCA with Cosmos-EVM atomic swaps using 1inch Fusion+ and custom resolvers.
Problem Statement
xSynth Engine is a comprehensive cross-chain Dollar-Cost Averaging (DCA) infrastructure that revolutionizes automated trading by extending 1inch's Fusion+ protocol to the Cosmos ecosystem. The project creates a seamless bridge between EVM and Cosmos chains, enabling users to execute gasless, MEV-protected DCA strategies across multiple blockchain networks.Core Innovation: Cosmos-EVM Fusion+ Extension The heart of xSynth is its novel extension of 1inch's Fusion+ protocol to support Cosmos chains through:CosmWasm Smart Contracts: Native Cosmos implementation preserving hashlock/timelock functionalityCustom Resolver Architecture: Intelligent cross-chain coordination system that monitors both EVM and Cosmos networksBidirectional Atomic Swaps: Secure token transfers from Ethereum ↔ Cosmos using Hash Time-Locked Contracts (HTLC)Merkle Proof Verification: Trustless validation of cross-chain transactions using cryptographic proofsAdvanced Limit Order Protocol Integration Building on 1inch's Limit Order Protocol, xSynth introduces:On-chain DCA Strategies: Automated recurring swaps with customizable frequency and amountsGasless Execution: Users pay zero gas fees through Privy wallet integration and account abstractionCross-Chain Order Routing: Intelligent order splitting across multiple chains for optimal executionComprehensive 1inch API Integration The platform leverages the complete 1inch API ecosystem:Fusion SDK: Gasless, MEV-protected swap executionFusion+ SDK: Cross-chain swap routing and coordinationBalance API: Real-time portfolio tracking across all supported chainsToken API: Whitelisted token discovery and metadataPortfolio API: Historical performance and analyticsWeb3 API: Direct blockchain interaction for transaction postingSupported Networks & Features EVM Chains: Ethereum, Base, Arbitrum, Polygon Cosmos Chains: Cosmos Hub, Secret Network, Osmosis Order Types: Fusion (same-chain), Fusion+ (cross-chain), Custom (Cosmos-specific)
Solution
Architecture Overview xSynth Engine consists of four primary components working in concert:Cross-Chain Bridge Relayer (Rust)CosmWasm Bridge Contracts (Rust/CosmWasm)EVM Smart Contracts (Solidity/Foundry)Frontend DCA Application (Next.js 15/React 19)Technical Stack & Integration Backend Infrastructure:Rust: High-performance relayer system with WebSocket monitoringCosmWasm: Native Cosmos smart contracts for atomic swapsSolidity + Foundry: EVM contracts with comprehensive testing suiteRedis (Upstash): Distributed scheduling and state management1inch Fusion SDK: Core swap execution engineFrontend & UX:Next.js 15 + React 19: Modern SSR application with API routesPrivy: Embedded wallets enabling gasless transactionsViem + Wagmi: Type-safe Ethereum interactionsTanStack Query: Optimistic state managementTailwind + Radix UI: Professional interface componentsKey Technical InnovationsCustom Resolver Pattern The custom resolver monitors both EVM and Cosmos networks simultaneously, coordinating atomic swaps and ensuring transaction finality across chains.Gasless DCA ExecutionHTLC Cross-Chain Atomic SwapsMerkle Proof VerificationPartner Technology Benefits Privy Wallet Integration:Account Abstraction: Users experience Web2-like onboardingSocial Login: Email/Google authentication for crypto newcomersGasless Transactions: Eliminates friction from gas fee managementNotable Technical AchievementsZero-Dependency Cross-Chain Coordination Unlike traditional bridges requiring trusted validators, xSynth uses cryptographic proofs and atomic swaps, eliminating counterparty risk.Universal DCA Protocol The first implementation enabling DCA strategies that span both EVM and Cosmos ecosystems in a single transaction flow.Intelligent Gas Optimization Smart routing determines whether to use same-chain Fusion or cross-chain Fusion+ based on real-time gas prices and liquidity.Cosmos-Native Integration Rather than wrapping Cosmos tokens on EVM chains, xSynth maintains native token representations across ecosystems. Development & TestingThe project represents a significant advancement in cross-chain DeFi infrastructure, making sophisticated trading strategies accessible to mainstream users while maintaining the security and decentralization principles of blockchain technology.
Hackathon
ETHGlobal Unite
2025
Contributors
- ariafinch
42 contributions