Cointime

Download App
iOS & Android

What Are Cross-Chain Swaps?

Individual blockchains are holistic digital environments where all applications are connected by an underlying network. But with the proliferation of blockchain networks, and a lack of connection between blockchains, there is a growing demand for cross-chain infrastructure that provides users with interoperability across many blockchain networks.

Without cross-chain infrastructure, blockchains are as disconnected as individual applications today.

Perhaps one of the most important primitives for the Web3 ecosystem is cross-chain swaps, which provide an important service by enabling the seamless exchange of one digital asset for another. Just as decentralized exchanges were one of the first primitives for individual blockchain networks, cross-chain swaps are poised to be a foundational component of an interconnected, cross-chain world.

What Is a Cross-Chain Swap?

Put simply, cross-chain swaps are a mechanism for trading a token issued on one blockchain with a token that’s been issued by a different blockchain in a trust-minimized manner.

While users today can already access cross-chain swap functionality through centralized exchanges, this introduces multiple layers of friction (e.g., transferring tokens to an exchange, swapping them directly or indirectly through a medium of exchange such as USD, and then moving the swapped tokens back to a wallet on a different blockchain). Additionally, this process requires users to leverage custodial services and temporarily give up custody of their assets. For something as fundamental as a cross-chain swap, this becomes a key barrier for building a world powered by sovereign digital asset ownership.

How Does a Cross-Chain Swap Work?

Cross-chain swaps can work in a variety of ways. Many current implementations rely upon cross-chain bridges, which wrap and lock up tokens on a source blockchain to create a 1-to-1 representation on the destination blockchain.

A simplified diagram showing how lock and mint token bridges work.

To perform a cross-chain swap, a user must lock up their tokens on the base blockchain, mint wrapped tokens on the destination blockchain, and then swap using a native decentralized exchange to buy the digital asset they desire. This process can be automated on the backend by cross-chain exchange protocols so that the user only needs to specify the asset they want to swap for and the digital asset they wish to receive. While this is a tried-and-true method of facilitating cross-chain swaps, users must trust in the security of the underlying bridge implementation.

Chainlink Proof of Reserve helps enhance bridge security by providing robust collateralization data and mitigating uncollateralized mints.

There are also other ways to architect bridge protocols. The example above is a “lock-and-mint” bridge model. Other bridge protocols may use a “burn-and-mint” approach, in which tokens on a source blockchain are burnt and then minted on the destination blockchain, or a “lock-and-unlock” model where native supply exists independently on different blockchains. That said, cross-chain swaps that use bridging protocols all follow the same framework: Tokens on the source blockchain are locked or burned, and the user receives an equivalent number of tokens on the destination blockchain. Only then can they make the swap.

Atomic Swaps

Another method for facilitating cross-chain swaps is to use time-locked smart contracts through a process commonly known as an atomic swap.

Let’s imagine there are two counterparties (Alice and Bob) in an atomic swap, each aiming to swap one digital asset for the other’s. Both Alice and Bob lock up the correct amount of tokens in a smart contract on their respective blockchains. Only once both parties put the correct amount of tokens in each smart contract can they be unlocked. Alice receives the digital assets that Bob has originally locked up, and vice versa.

While atomic swaps are one of the most decentralized options for facilitating cross-chain swaps, it’s not a very generalizable or scalable model. For example, atomic swaps generally require blockchains to use the same hashing function, both counterparties to agree on the amount and exchange price, and the ability to wait a variable amount of time for the swap to go through.

Cross-Chain Liquidity

Cross-chain infrastructure, from bridges to exchanges, plays a crucial role in securely unlocking cross-chain liquidity. As more blockchains enter the Web3 industry and the adoption of new and existing blockchains continues to grow, liquidity becomes trapped across these digital environments. Fragmented liquidity decreases market efficiency across all blockchains, diminishes the utility of digital assets, and acts as a barrier for developers aiming to capture users across many blockchains.

Cross-chain bridges, swaps, exchanges, and other tools enable the formation of various types of cross-chain liquidity pools—connection points that help various blockchains access or transport liquidity from another blockchain. This is absolutely crucial for creating a unified Web3.

Chainlink for Cross-Chain Applications

At its core, the cross-chain problem that blockchains face today can be boiled down to data delivery and synchronization across blockchains. After all, tokens are simply a specific type of data stored on a blockchain’s decentralized ledger.

The Cross-Chain Interoperability Protocol (CCIP) is an open standard for cross-chain interoperability that’s currently in development. It’s designed to use Chainlink decentralized oracle networks (DONs) to enable programmable token bridges and secure, arbitrary, and trust-minimized messaging between blockchains. The core goal of CCIP is to establish a universal connection between blockchain networks—both public and private—to unlock isolated tokens and empower the creation of cross-chain applications.

CCIP is designed to be foundational Web3 infrastructure—an open standard that helps developers build a wide range of cross-chain applications.

In the context of cross-chain swaps, CCIP can support more efficient liquidity routing by enabling secure and seamless data delivery on liquidity conditions, token balances, and more metrics across various blockchains. Additionally, the programmable token bridge can enable any Web3 developer to build for a cross-chain environment without needing to directly manage the underlying bridge infrastructure. Cross-chain exchanges can then build better user interfaces, facilitate swaps at a lower cost, and offer a wider range of assets due to the unparalleled connectivity provided by the adoption of an open standard.

Conclusion

Cross-chain swaps remove the need for centralized intermediaries by enabling direct exchanges of value and information between blockchain networks. Simply put, they offer a more secure, transparent, and seamless way for users to trade assets across various blockchains.

The Cross-Chain Interoperability Protocol aims to connect the wide range of blockchains and the applications built on top of them.

As Web3 continues to grow and more applications and tokens are built on top of the growing network of blockchain ecosystems, cross-chain infrastructure like CCIP can play an increasingly important role in creating a unified user and developer experience.

Read more: https://blog.chain.link/cross-chain-swap/

Comments

All Comments

Recommended for you

  • Modular Data Layer for Gaming and AI, Carv, Raises $10M in Series A Funding

    Santa Clara-based Carv has secured $10m in Series A funding led by Tribe Capital and IOSG Ventures, with participation from Consensys, Fenbushi Capital, and other investors. The company plans to use the funds to expand its operations and development efforts. Carv specializes in providing gaming and AI development with high-quality data enhanced with human feedback in a regulatory-compliant, trustless manner. Its solution includes the CARV Protocol, CARV Play, and CARV's AI Agent, CARA. The company is also preparing to launch its node sale to enhance decentralization and bolster trustworthiness.

  • The US GDP seasonally adjusted annualized rate in the first quarter was 1.6%

    The seasonally adjusted annualized initial value of US GDP for the first quarter was 1.6%, estimated at 2.5%, and the previous value was 3.4%.

  • The main culprit of China's 43 billion yuan illegal money laundering case was arrested in the UK, involved in the UK's largest Bitcoin money laundering case

    Local time in the UK, Qian Zhimin appeared in Westminster Magistrates' Court for the first time under the identity of Yadi Zhang. She was accused of obtaining, using or possessing cryptocurrency as criminal property from October 1, 2017 to this Tuesday in London and other parts of the UK. Currently, Qian Zhimin is charged with two counts of illegally holding cryptocurrency. Qian Zhimin is the main suspect in the Blue Sky Gerui illegal public deposit-taking case investigated by the Chinese police in 2017, involving a fund of 43 billion yuan and 126,000 Chinese investors. After the case was exposed, Qian Zhimin fled abroad with a fake passport and held a large amount of bitcoin overseas. According to the above Financial Times report, Qian Zhimin denied the charges of the Royal Prosecution Service in the UK, stating that she would not plead guilty or apply for bail.

  • Nigeria’s Central Bank Denies Call to Freeze Crypto Exchange Users’ Bank Accounts

    In response to the news that "the Central Bank of Nigeria has issued a ban on cryptocurrency trading and requested financial institutions to freeze the accounts of users related to Bybit, KuCoin, OKX, and Binance exchanges," the Central Bank of Nigeria (CBN) stated in a document that the CBN has not officially issued such a notice, and the public should check the official website for the latest information to ensure the reliability of the news. According to a screenshot reported by Cointelegraph yesterday, the Central Bank of Nigeria has requested all banks and financial institutions to identify individuals or entities trading with cryptocurrency exchanges and set these accounts to "Post-No-Debit" (PND) status within six months. This means that account holders will not be able to withdraw funds or make payments from these accounts. According to the screenshot, the Central Bank of Nigeria has listed cryptocurrency exchanges that have not obtained operating licenses in Nigeria, including Bybit, KuCoin, OKX, and Binance. The Central Bank of Nigeria will crack down on the illegal purchase and sale of stablecoin USDT on these platforms, especially those using peer-to-peer (P2P) transactions. In addition, the Central Bank of Nigeria pointed out that financial institutions are prohibited from engaging in cryptocurrency transactions or providing payment services to cryptocurrency exchanges.

  • Universal verification layer Aligned Layer completes $20 million Series A financing

    Ethereum's universal verification layer Aligned Layer has completed a $20 million Series A financing round, led by Hack VC, with participation from dao5, L2IV, Nomad Capital, and others. The Aligned Layer mainnet is scheduled to launch in the second quarter of 2024. As the EigenLayer AVS, Aligned Layer provides Ethereum with a new infrastructure for obtaining economically viable zero-knowledge proof verification for all proof systems.

  • The total open interest of Bitcoin contracts on the entire network reached 31.41 billion US dollars

    According to Coinglass data, the total open position of Bitcoin futures contracts on the entire network is 487,500 BTC (approximately 31.41 billion US dollars).Among them, the open position of CME Bitcoin contracts is 143,600 BTC (approximately 9.23 billion US dollars), ranking first;The open position of Binance Bitcoin contracts is 109,400 BTC (approximately 7.07 billion US dollars), ranking second.

  • Bitcoin mining difficulty increased by 1.99% to 88.1T yesterday, a record high

    According to BTC.com data reported by Jinse Finance, the mining difficulty of Bitcoin has increased by 1.99% to 88.1T at block height 840,672 (22:51:52 on April 24), reaching a new historical high. Currently, the average network computing power is 642.78EH/s.

  • US Stablecoin Bill Could Be Ready Soon, Says Top Democrat on House Financial Services Committee

    The top Democrat on the U.S. House Financial Services Committee, Maxine Waters, has stated that a stablecoin bill may be ready soon, indicating progress towards a new stablecoin law in the U.S. before the elections. Waters has previously criticized a version of the stablecoin bill, but emphasized the importance of protecting investors and ensuring that stablecoins are backed by assets. Congressional movement on stablecoin legislation has recently picked up pace, with input from the U.S. Federal Reserve, Treasury Department, and White House in crafting the bill. The stablecoin bill could potentially be tied to a must-pass Federal Aviation Administration reauthorization due next month, and may also be paired with a marijuana banking bill.

  • Crypto mining company Argo mined 1,760 bitcoins last year and earned $50.6 million

    Crypto mining company Argo Blockchain has released its 2023 financial year performance report, which includes:

  • Shanghai Municipal Party Committee Secretary: Welcome Standard Chartered to establish more new institutions, new businesses and new platforms such as blockchain in Shanghai

    Chen Jinong, the Secretary of the Shanghai Municipal Party Committee, met with Weihao Si, the Chairman of the Board of Directors of Standard Chartered Bank, and Mark William D'Arcy, the Executive Director, and some members of the Board of Directors yesterday morning. Chen Jinong stated that he welcomes Standard Chartered Bank to leverage its own advantages, strengthen strategic connections, place more new institutions, businesses, and platforms such as wealth management and blockchain in Shanghai, focus on deepening pragmatic cooperation in technology finance, green finance, digital finance, and create more application scenarios, and provide comprehensive and professional service support for enterprises to go abroad.