SYS-CON MEDIA Authors: Elizabeth White, Pat Romanski, Liz McMillan, Yeshim Deniz, Courtney Abud

Blog Feed Post

How Decentralized Exchanges Enable Trustless Trade on Blockchain Networks

For the longest time, people used to trade tokens and cryptocurrencies in centralized exchanges.

It was convenient: the exchanges matched and executed orders automatically and provided a processing speed which most blockchains could never pull of – not with their complex block validation.

But, at the same time, they were vulnerable as, in fact, all centralized databases are.

ShapeShift, Cryptsy, Colbitex, Coinflip… it’s hard to even to count all the traditional exchanges that either fell victim to hacking or were shut down by regulators over the last few years. And this caused utter panic; people lost millions of dollars worth of crypto assets.

Now, the conventional trading procedure, which cryptocurrency enthusiast are so familiar with, is about to be redefined. There are hundreds of new tokens on blockchains, spawned predominantly by the ICO craze, and soon we may be trading them, securely and hassle-free, using decentralized exchanges (DEXs).

Decentralized Exchanges on Ethereum

Decentralized Exchanges on Ethereum

On the Ethereum network, where most of the new tokens are traded, there now exist a few types of decentralized exchanges. They all share one trait – using smart contracts to execute settlement – but differ in how they approach maintaining orders.

The most popular ones, such as EtherDelta and 0x, still provide an order book for buyers and sellers that’s, in a way, centralized and is handled off chain; the way they work, therefore, is this:

  • A person submits a (buy/sell) request to a relayer which hosts an order book (which can be administered in a centralized or decentralized fashion)
  • An interested party on the other end digitally signs it and creates a counterorder
  • Both orders are then sent to a smart contract on Ethereum, which executes the transaction and transfers crypto assets between users’ wallets.

Unlike centralized exchanges, DEXs let users have control over their crypto assets at all times
Click To Tweet


Unlike centralized exchanges, DEXs let users have control over their crypto assets at all times: they give out personal keys and allow a buyer (or a seller) to retract their funds from a smart contract should they change their mind and decide not to proceed with a transaction.

They resolve risks of hacking and scrutiny from regulators, which centralized exchanges are so prone to, by having smart contracts take care of order clearing. They also enable global trade, as anyone in any country could post to their order books, and reduce the friction of the procedure by eliminating registrations and signups.

As of now, decentralized exchanges are typically designed as frontend apps (see EtherDelta). However, in the not-too-distant future, experts say, they might only have programmatic interfaces and become mere nodes in p2p networks that match orders with other orders.

Unlike EtherDelta that just has one relayer service and an order book that it fully controls, decentralized exchange protocols, like 0x, allow anyone to become a relayer and set up their own exchanges.

These relayers can then collect fees for matching orders – the process similar to mining, but designed to facilitate the trade of different tokens.

Besides, there are exchanges on Ethereum that avoid the order book functionality altogether. KyberNetwork, for example, has introduced a solution that allows people to send a token in and get another one out without a relayer, anonymously.

The company will maintain reserves of various tokens and cryptocurrency, to which anyone will be able to contribute, and thus ensure tokens’ liquidity. It plans to be the sole manager of these reserves initially, regulating the exchange rates and listing or delisting tokens, but claims to give administrative rights to others too as their reserves grow bigger.

To become a reserve manager though, one will have to go through a KYC process with KyberNetwork, which to some might seem a bit off-putting.

What are the Drawbacks of Using Decentralized Exchanges?

What are the Drawbacks of Using Decentralized Exchanges

It is still early days, and though the concept indeed seems promising, the adoption of decentralized exchanges has not been large-scale yet. There are quite a few risks associated with the technology, which its developers should think through carefully, and, mostly, the hidden dangers are related to potential arbitrage and frontrunning.

Since automated matching on the majority of decentralized exchanges is sacrificed for the sake of security, things might occasionally get out of sync. For instance, an order might appear valid in an off-chain orderbook, when, in fact, it’s already been fulfilled on the blockchain. This might result in your paying a gas fee for submitting an order to the network and losing funds for nothing when it fails.

Arbitrage, as we’ve mentioned, is one of the primary concerns too. In the light of constant fluctuations on the crypto market, and the fact that users are unable to cancel transactions instantly, there is a temptation for bad actors to fill and manipulate stale orders to their advantage. When you attempt to call off a signed order, you must submit a cancellation transaction to the blockchain, which means paying a gas fee to miners for the execution. But an arbitrageur can beat you to it; they can offer more gas to validators and thus get ahead of you in the transaction race.

Miners, too, can act maliciously. Since all of your canceled orders are visible before the transaction takes place, validators can execute them with themselves as a counterparty. So, a token you wanted to buy yesterday, but that has become worthless today, might still be sold to you by a dishonest miner, even though you canceled the deal. And you’ll still have to pay a gas price for the failed cancellation.

To conclude

With new tokens being poured into the blockchain ecosystem at a frenetic pace; with centralized exchanges’ being unsafe and refusing to list them, it’s obvious that there is now a market fit for DEXs. We should, therefore, expect to hear new loud names entering the exchange game presently, and, since the competition is firing up, the new cool tech that’ll have all the systemic issues fixed will certainly be developed soon too.

Thinking to launch your company’s own decentralized exchange? Reach out to us for a free consultation; we can help you bring your idea to life.

The post How Decentralized Exchanges Enable Trustless Trade on Blockchain Networks appeared first on Perfectial.

Read the original blog entry...

More Stories By Rostyslav Demush

Ross Demush is a digital marketing specialist at custom software development company Perfectial, a leading provider of web & mobile development services, specializing in FinTech, Real Estate, Media & Entertainment & eLearning.

Latest Stories
Using serverless computing has a number of obvious benefits over traditional application infrastructure - you pay only for what you use, scale up or down immediately to match supply with demand, and avoid operating any server infrastructure at all. However, implementing maintainable and scalable applications using serverless computing services like AWS Lambda poses a number of challenges. The absence of long-lived, user-managed servers means that states cannot be maintained by the service. Lo...
With the new Kubernetes offering, ClearDATA solves one of the largest challenges in healthcare IT around time-to-deployment. Using ClearDATA's Automated Safeguards for Kubernetes, healthcare organizations have access to the container orchestration to dynamically deploy new containers on demand, monitor the health of each container for threats and seamlessly roll back faulty application updates to a previous version, avoid system-wide downtime and ensure secure continuous access to patient data.
As Apache Kafka has become increasingly ubiquitous in enterprise environments, it has become the defacto backbone of real-time data infrastructures. But as streaming clusters grow, integrating with various internal and external data sources has become increasingly challenging. Inspection, routing, aggregation, data capture, and management have all become time-consuming, expensive, poorly performing, or all of the above. Elements erases this burden by allowing customers to easily deploy fully man...
Applications with high availability requirements must be deployed to multiple clusters to ensure reliability. Historically, this has been done by pulling nodes from other availability zones into the same cluster. However, if the cluster failed, the application would still become unavailable. Rancher’s support for multi-cluster applications is a significant step forward, solving this problem by allowing users to select the application and the target clusters, providing cluster specific data. Ranc...
StackRox helps enterprises secure their containerized and Kubernetes environments at scale. The StackRox Container Security Platform enables security and DevOps teams to enforce their compliance and security policies across the entire container life cycle, from build to deploy to runtime. StackRox integrates with existing DevOps and security tools, enabling teams to quickly operationalize container and Kubernetes security. StackRox customers span cloud-native startups, Global 2000 enterprises, a...
With the rise of Docker, Kubernetes, and other container technologies, the growth of microservices has skyrocketed among dev teams looking to innovate on a faster release cycle. This has enabled teams to finally realize their DevOps goals to ship and iterate quickly in a continuous delivery model. Why containers are growing in popularity is no surprise — they’re extremely easy to spin up or down, but come with an unforeseen issue. However, without the right foresight, DevOps and IT teams may lo...
JFrog, the DevOps technology leader known for enabling liquid software via continuous update flows, was honored today with two prestigious awards as part of DevOps.com's annual DevOps Dozen. The awards recognized both JFrog Artifactory as the "Best DevOps Commercial Solution" and JFrog Co-Founder and CEO, Shlomi Ben Haim, as the "Best DevOps Solution Provider Executive". DevOps.com holds the DevOps Dozen awards annually to recognize the best of the best in the global DevOps marketplace.
Docker and Kubernetes are key elements of modern cloud native deployment automations. After building your microservices, common practice is to create docker images and create YAML files to automate the deployment with Docker and Kubernetes. Writing these YAMLs, Dockerfile descriptors are really painful and error prone.Ballerina is a new cloud-native programing language which understands the architecture around it - the compiler is environment aware of microservices directly deployable into infra...
DevOps is under attack because developers don’t want to mess with infrastructure. They will happily own their code into production, but want to use platforms instead of raw automation. That’s changing the landscape that we understand as DevOps with both architecture concepts (CloudNative) and process redefinition (SRE). Rob Hirschfeld’s recent work in Kubernetes operations has led to the conclusion that containers and related platforms have changed the way we should be thinking about DevOps and...
Signs of a shift in the usage of public clouds are everywhere Previously, as organizations outgrew old IT methods, the natural answer was to try the public cloud approach; however, the public platform alone is not a complete solutionThe move to hybrid, custom, and multi-cloud will become more and more prevalent At the heart of this technology trend exists a custom solution to meet the needs and concerns of these organizations, including compliance, security, and cost issues Blending Ser...
When a company wants to develop an application, it must worry about many aspects: selecting the infrastructure, building the technical stack, defining the storage strategy, configuring networks, setting up monitoring and logging, and on top of that, the company needs to worry about high availability, flexibility, scalability, data processing, machine learning, etc. Going to the cloud infrastructure can help you solving these problems to a level, but what if we have a better way to do things. ...
Cloud-Native thinking and Serverless Computing are now the norm in financial services, manufacturing, telco, healthcare, transportation, energy, media, entertainment, retail and other consumer industries, as well as the public sector. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait for long development cycles that pro...
Docker is sweeping across startups and enterprises alike, changing the way we build and ship applications. It's the most prominent and widely known software container platform, and it's particularly useful for eliminating common challenges when collaborating on code (like the "it works on my machine" phenomenon that most devs know all too well). With Docker, you can run and manage apps side-by-side - in isolated containers - resulting in better compute density. It's something that many developer...
The KCSP program is a pre-qualified tier of vetted service providers that offer Kubernetes support, consulting, professional services and training for organizations embarking on their Kubernetes journey. The KCSP program ensures that enterprises get the support they're looking for to roll out new applications more quickly and more efficiently than before, while feeling secure that there's a trusted and vetted partner that's available to support their production and operational needs.
In a recent survey, Sumo Logic surveyed 1,500 customers who employ cloud services such as Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). According to the survey, a quarter of the respondents have already deployed Docker containers and nearly as many (23 percent) are employing the AWS Lambda serverless computing framework. It's clear: serverless is here to stay. The adoption does come with some needed changes, within both application development and operations. Th...