How-To Bridge and Swap

How-To Bridge and Swap

Bridging and Swapping

Before learning about bridging, swapping, and trading, it is key to understand the overlying financial technology known as DeFi (decentralized finance). Contrary to DeFi, centralized finance is the process familiar to the world consisting of banks holding money alongside large corporations seeking to grow their capital and earnings while maintaining privacy and a lack of transparency within those financial systems and institutions. Blockchain technology allows us to remove these intermediaries and gives sellers, creators, and businesses the ability to control and engage in financial transactions freely, which is the process we refer to as DeFi. In simple terms, blockchain technology takes the information from all of these online decentralized financial transactions and collects them into what are called “blocks.” These blocks are then linked together,  storing massive amounts of information that cannot be altered, deleted, or changed without altering the entire chain or all the information held on the blockchain, which the technology itself is created to prevent. 

One of the primary reasons for the creation of DeFi was to enable person-to-person transactions, allowing anyone to transfer funds or digital assets to others without an intermediary. Cryptocurrencies are the primary source of assets used to make transfers and payments within DeFi protocols. There are many ways in which you can engage with DeFi, but some of the primary methods consist of trading, investing, giving and taking loans, purchasing on-chain assets, and more. In this article, we will primarily focus on a few DeFi protocols crucial for participating in the web3 gaming space: bridging, swapping, and trading. This will bring you an understanding of the functionality of cryptocurrency within DeFi such that you can not just understand, but be able to bridge, swap, and trade your cryptocurrencies so that you are fully equipped to purchase, earn, and participate within web3 gaming economies and DeFi protocols in general.

Bridging:

​​

What is bridging?

Bridges are used when you want to move cryptocurrencies or tokens from one blockchain to another. Unfortunately, blockchains are not all interoperable and thus we need blockchain bridges to ensure that we cant port tokens held on one blockchain to another blockchain, using a blockchain bridge. Bridging technology has the ability to create a synthetic copy or derivative of that asset from one blockchain to another. We see this happen commonly through “wrapped” versions of a token. After a token has been “bridged,” it itself has been destroyed or “burned” on the blockchain it is currently on and then synthetically replicated on the blockchain the tokens are being transferred to. After the funds are transferred, their synthetic counterparts are then fully functional on the blockchain they have been bridged to. 

Types of Blockchain Bridges:

There are multiple types of blockchain bridges. Both unilateral and bilateral bridges exist. Unilateral bridges are used to get a token from one blockchain to another, but can’t be used to get tokens from the second blockchain back to the original blockchain, as they only function unilaterally. You could send a token from Solana to Polygon, but could not bridge assets from Polygon back to Solana using the same bridge. Multilateral bridges allow you to bridge assets back and forth between blockchains. When using a multilateral bridge you could bridge $SOL and send it to the Ethereum blockchain and could bridge or send $ETH over to the Solana blockchain. 

Another classification of blockchain bridges is whether or not they are centralized (custodial or trusted) or decentralized (noncustodial or untrusted). While everyone typically views the blockchain as being completely decentralized, centralized bridges are seen in the DeFi space because in order to bridge a token, you have to synthetically replicate the token being bridged, which means the synthetic or wrapped token that is being created has to be held somewhere, it is not just magically minted upon bridging your token. Centralized bridges are necessary because they hold a supply of tokens that can replicate former tokens and thus replicate them in another blockchain after they are burned. 

Decentralized bridges function through the protocol operating the bridge holding the tokens used to replicate the tokens used in the bridging process. There is constant debate around which bridge type is best, but both have proven to be successful. There have been security breaches in both centralized and decentralized bridging protocols, but most DeFi users engage with both types on a regular basis safely.

When should I use bridges and how do they apply to web3 gaming?:

Blockchains all operate differently. For example, many Ethereum users know that using Ethereum comes with large gas prices (see our blog post on gas fees for more information on this) and transaction fees. Bridging tokens allows you to send your tokens to another blockchain with less fees or faster transfer speeds. Through Defi protocols called Dapps, which allow you to lend out cryptocurrencies on a blockchain, bridging tokens can allow you to send these tokens you want to lend out to a blockchain with a higher lending interest rate. There are often instances where you want to engage with another blockchain but don’t have a way to transfer your tokens to that blockchain, so engaging with a blockchain allows you to get your assets to the desired blockchain such that you can use them on that blockchain. 

In the context of web3 gaming, understanding how to bridge tokens is crucial. With so many games constantly emerging in the space, all operating on different blockchains and with different tokens, the need to bridge tokens to the game’s blockchain or NFT marketplace is key in being able to participate and make purchases in web3 game economies. 

Risks of Bridging:

While most major centralized and decentralized bridges have remained relatively safe, the largest risks you face in bridging are similar to those you face in other DeFi protocols, consisting of problems within the code the centralized bridge or decentralized protocol is using, a software malfunction, or possible attacks from hackers are the primary security risks seen in blockchain bridges.

How to Bridge:

*The following example uses the Synapse Bridge

Step 1:

Enter the bridge protocol and connect your wallet.

Step 2:

Select your network and the token you want to bridge, alongside the desired amount you want to bridge to another blockchain.

Step 3:

Select the blockchain you want to bridge your token to. 

Step 4:

Underneath the blockchain you are bridging to you will see the cost of the transaction fees. Once you have finalized your bridge and are sure the amounts look correct, select “Bridge Token.”

Once the transaction goes through you will be notified below the blockchain you are bridging to and you can click on the transaction to view its details. 

Swapping:

What is Swapping?

Token swapping is often confused with bridging, but differs in that swapping is used when wanting to exchange one cryptocurrency for another on the same blockchain. This functions similarly to real-world currency exchanges seen at airports and country borders. Swapping generally uses a comparison stablecoin to ensure that the exchange rate remains consistent between tokens being swapped. If a pair of tokens on a swapping protocol do not exist, meaning they cannot be exchanged between one another, they first must be exchanged with a fiat currency like USD, after which the USD can be used to purchase or be exchanged for the target token.

Because tokens are merely swapped, and not created or destroyed in the process, token swapping has remained incredibly secure as long as it is done on a trusted platform. Uniswap, PancakeSwap, and SushiSwap are among some of the top token swapping platforms used.

How to Swap Tokens:

*The following example uses SushiSwap

Step 1:

Connect your wallet.

Step 2: 

Make sure the network within your selected wallet contains the currency you want to swap. Next, you will select the top token to be the token you want to swap for another.

Step 3:

Select the token on the bottom to be the token you want to exchange the top token for. The amount of that token you will receive along with the exchange rate between those tokens will appear above the swap button.

Step 4: 

Once you have finalized all the information and confirmed the amounts are correct, click “Swap.”

Step 5:

You will be prompted to confirm the swap, where you can see the entire transaction and its associated fees. Once you have finalized all amounts, click “Confirm Swap”

Trading Preview:

What is Trading?:

Trading cryptocurrencies operates in a similar fashion to swapping, but it is seen as a blockchain adapted concept similar to day-trading on the stock market. Trading is typically the process of using a fiat currency to purchase a cryptocurrency like Ether or Bitcoin and deciding when to sell or purchase those currencies. It also entails selling cryptocurrencies to purchase others. Crypto trading is seen as a way to bet on cryptocurrencies and their respective markets. When trading using a specific trading platform, you are generally restricted to only the token options available on that platform.

Because of the complexity of crypto trading and the many platforms and methods available to do it, we will be publishing a future blog post and video tutorial on cryptocurrency trading to ensure you are fully equipped to jump into the market and start trading!