SwapZilla: Decentralized cross-chain swaps via LayerZero. Create orders on one chain, match on another, execute swaps across networks—all without transferring assets to a bridge.
Prize Pool
SwapZilla is a decentralized protocol enabling direct asset swaps across different blockchain networks. It leverages LayerZero for cross-chain communication and implements the Uniswap's IERC7683 interface, enhancing its interoperability and standardization. The protocol's key advantage is facilitating token exchanges without relying on traditional bridge transfers.
Technical Framework:
Cross-chain communication: LayerZero technology Smart contract interface: IERC7683 Supported networks: Multiple EVM-compatible chains (e.g., Base, Scroll)
Exchange Process:
Order Creation: Users submit swap orders on their respective chains. Order Matching: A solver identifies and proposes compatible cross-chain orders. Order Resolution: Matched orders are executed, transferring assets directly between users on different chains.
Example Scenario:
Alice (on Base) and Bob (on Scroll) create swap orders. Orders are broadcast across both chains. A solver identifies the complementary nature of their orders. The protocol validates and matches the orders. Upon resolution, Alice's Base tokens are transferred to Bob, and Bob's Scroll tokens to Alice.
Key Benefits:
Eliminates intermediary bridge risks Enhances liquidity across chains Potentially reduces fees and transaction times Standardized interface for improved interoperability
Our team started a project to create a cross-chain decentralized exchange using LayerZero technology. Here’s a simplified breakdown of what we did:
Setup: We used NPX to create a LayerZero application and imported a modified version of the IERC7683 interface from Uniswap.
Modifications: We made several changes to the interface to fit our needs:
LayerZero Integration:
Development Process:
Frontend:
This project demonstrates the potential of cross-chain decentralized exchanges using LayerZero. Our design could be better, but we had limited time during the hackathon. For future improvements, we suggest:
These enhancements would make our cross-chain exchange more reliable and robust for production use. However, due to the hackathon's time limits, these were beyond our initial proof of concept's scope.