AceSuperSwap

Building a crosshchain resolver on stellar to facilitate ethereum to stellar swaps

AceSuperSwap

Created At

Unite Defi

Winner of

1inch

1inch - Extend Fusion+ to Stellar 3rd place

Project Description

Acesuperswap might be the first working atomic swaps between the Ethereum and Stellar networks, solving the problem of trustless cross-chain asset transfers.

The Problem: Current cross-chain bridges are centralized honeypots - over $2 billion stolen in 2022 alone. Users must trust bridge operators with their funds, creating risk.

Our Solution: Pure cryptographic atomic swaps using Hash Time-Locked Contracts (HTLCs) with ZERO trusted intermediaries. Either both swaps complete successfully, or both fail - no partial states, no stuck funds, no trust required.

Key Innovation: We bridge fundamentally different blockchain architectures:

  • EVM chains use individual escrow contracts per swap
  • Stellar uses a singleton factory managing multiple escrows via storage keys
  • Our Bridge links these using universal order_hash identifiers with cryptographic atomicity

What Makes This Special:

  • Working Implementation of EVM ↔️ Stellar atomic swaps
  • True Atomicity: Cryptographic guarantees, not trust-based promises
  • Production Ready: Live testnet deployment with comprehensive testing
  • Bidirectional: Supports both EVM→Stellar AND Stellar→EVM swaps
  • 1inch Integration: Built on proven Fusion+ infrastructure for immediate adoption

How it's Made

Core Architecture: We built a dual-chain atomic swap system that bridges EVM and Stellar's fundamentally different smart contract models using cryptographic Hash Time-Locked Contracts.

Technologies Used:

  • Stellar: Soroban smart contracts in Rust with a factory singleton pattern
  • EVM: Solidity escrow contracts integrated with 1inch Limit Order Protocol
  • TypeScript: Contract bindings and cross-chain orchestration
  • 1inch Fusion+ SDK: Production-grade order management and matching

Key Technical Innovations:

  1. SAC Admin Architecture Breakthrough The biggest challenge: Soroban contracts can't hold classic Stellar assets due to trustline requirements. We solved this by making our factory contract the SAC (Stellar Asset Contract admin:

  2. Cross-Chain State Synchronization Different architectures required innovative linking:

  • EVM: Individual contract per swap with deterministic addresses
  • Stellar: Factory storage using order_hash as universal key
  • Bridge: Same order_hash creates a logical link between different storage models
  1. Cryptographic Hash Consistency Ensuring identical hash computation across Rust and Solidity required a bit-level format consistency:

  2. Dual Address Mapping Bridging 20-byte EVM addresses with 32-byte Stellar addresses using structured mapping

Partner Technology Benefits:

  • 1inch Fusion+: Provided battle-tested order management, gas optimization, and MEV protection
  • Stellar Soroban: Enabled efficient factory pattern with persistent storage
  • TypeScript Bindings: Auto-generated from Rust contracts for type-safe interaction, I ran into a lot of xdr and bad union switch errors
background image mobile

Join the mailing list

Get the latest news and updates