Home Cases Contractland

Contractland: Decentralized Exchange

Looking for the experts in Blockchain and Fintech?

Let's talk
USA Client’s Location
2+ Team members
10 months Project period

Contractland is a fully decentralized crypto exchange that allows users to transfer assets from BTC and ETH blockchains to the blockchain of Contractland. The platform was based on its own private blockchain, which was faster than Ethereum.

ContractLand was looking for proficient contributors to web3. At that time we already have huge expertise working with both private and public blockchains. After a few technical discussions, the ContractLand team decided to collaborate with 4ire Labs.

The goal was to build the infrastructure that would provide liquidity of tokenized assets across various blockchains through high performing multi-chain technology.

Challenge

Exchange is a platform with an algorithm that matches deals. The main issue is related to traders’ risks. When users need to change any assets, they should transfer money from their wallets to the platform. In case there are some issues with the platform, it doesn’t work or simply it’s hacked, a trader loses money.

At this point, decentralized exchanges allow traders to transfer their money in a more secure way. The main advantage of decentralized exchanges is that it doesn’t have a server with all the data, thus it’s difficult to block it.

Our role

4ire Labs team took part in the architecture vision and the development of the Terra Bridge protocol. This protocol is used for interchain transfers between Ethereum and Bitcoin.

Such transfers may be used in the following cases: 

  • For stable coins
  • In decentralized exchanges
  • In financial derivatives 

While designing the bridge, our specialists decided to focus on the three most important things:

  • Two-way transfer support 
  • Standardized Interface which allows easy integration
  • Permissionless 

Terra-Bridge design includes the following parts: 

Home – The chain where users can exchange external assets onto in the form of pegged tokens

Foreign – The chain for exchanging assets from and onto the Home

Bridge – The system for performing message relay, verification, and hold/release of assets between users on home and foreign.

Validator – Role that runs bridge client (as miners of Proof-of-Work chains).

How it works

The bridge has a two-way pegging structure. It works with a rotating validator set and two bridge contracts. The bridge contracts remain on the home and foreign chains (home-bridge and foreign-bridge).

The contracts functionality of the bridge consists of:

  • ability to accept and lock funds
  • verification of  the signature of cross-chain transactions, which are incoming
  • realization of token to user address on successful transfers

The relay of messages between the bridges on different chains happens in a byzantine fault-tolerant way by the bridge validators.

Our architects visualized the process of Foreign-Home and Home-Foreign Transfer flow:

foreign-home tranfer

All the processes were described on GitHub, you can take a look here.

Now Terra-bridge is successfully used for interchain transfers. 4ire Labs team is open for similar projects, as we’re striving to provide innovative solutions for the blockchain community. If you’d like to discuss your idea and methods of blockchain implementation, contact us to discover more.

Share this case
Industries DeFi
DECENTRALIZED EXCHANGE DEVELOPMENT

Our Latest Insights

Fintech
11 min

Top 17 Smart Contract Hacks in 2021-2022 Found by 4IRE

In this article, we researched the crypto market deep and wide to come up with the list of the most audacious crypto ...

July 2022
by Vladislav Malynovskyi
Blockchain, NFT
11 min

Launching Your NFT Marketplace for Play-2-Earn Games

The P2E market is growing very fast and NFTs with their benefits have integrated pretty well into it. In this articl ...

June 2022
by Helen Petraschuk
Blockchain
11 min

How to Build a Cryptocurrency Exchange like Binance?

Crypto exchanges offer users a bunch of opportunities like buying and selling crypto assets and earning a passive in ...

May 2022
by Andrey Kutikov