Get a quote
Request a project quote - [email protected]
4IRE Labs © 2011 - 2022. All rights reserved
Home Cases Contractland

Contractland: Decentralized Exchange Architecture

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.

The goal was to build a decentralized exchange architecture that would provide liquidity of tokenized assets across various blockchains through high-performing multi-chain technology.

Challenge

Decentralized Exchange (DEX) 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 in decentralized exchange architecture

4IRE team took part in the decentralized exchange 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, incorporating a DEX architecture, 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 team is open for similar projects with decentralized exchange architecture, 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

Bank, Fintech
11 min

How to Start a Neobank in 2024: A Complete Guide

Learn more about the ways Neobanks can transform the modern financial sector with digital-only services accessible t ...

April 2024
by Andrew Klesov
GreenFi
11 min

How to Build a Carbon Trading Platform in 2024

Carbon credit trading is gaining momentum in the increasingly sustainable world. Here’s how you can monetize this ri ...

April 2024
by Helen Petraschuk
Bank, Cryptocurrency
11 min

How to Build a Crypto Bank in 2024

Crypto banks are gaining popularity amid the rising adoption of cryptocurrencies in digital transactions. Here’s how ...

April 2024
by Andrew Klesov