Cross-chain swap contract enabling token exchanges between Ethereum, Solana, Bitcoin, and other blockchains.
This contract enables users to exchange a native gas token or a supported ERC-20 token from one connected blockchain for a token on another blockchain. For example, a user will be able to swap USDC from Ethereum to BTC on Bitcoin in a single transaction.
The Swap contract is implemented as a universal app and must deployed on ZetaChain.
A universal app is a smart contract on ZetaChain that is natively connected to other blockchains like Ethereum, BNB and Bitcoin.
Unlike a regular contract, a universal app can accept contract calls, messages and token transfers from any connected chain. It can also trigger contract calls, and make token transfers on connected chains. These abilities enable universal apps to orchestrate complex multi-step transactions that span across chains.
For example, a Bitcoin user can interact with a universal app to send USDC to a recipient on Ethereum. An Ethereum user can buy an NFT on ZetaChain and send it to to their account on the BNB chain.
Universal apps are deployed on ZetaChain's universal EVM, which extends the EVM with omnichain interoperability features. This means your existing contracts will work out of the box on ZetaChain, and with some modifications, they can gain powerful omnichain capabilities.
⚠️ The Swap contract is a universal app that must be deployed on ZetaChain.
Dec 10, 2024
MIT, , Unlicense