Welcome!

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
The current age of digital transformation means that IT organizations must adapt their toolset to cover all digital experiences, beyond just the end users’. Today’s businesses can no longer focus solely on the digital interactions they manage with employees or customers; they must now contend with non-traditional factors. Whether it's the power of brand to make or break a company, the need to monitor across all locations 24/7, or the ability to proactively resolve issues, companies must adapt to...
In his session at 20th Cloud Expo, Scott Davis, CTO of Embotics, discussed how automation can provide the dynamic management required to cost-effectively deliver microservices and container solutions at scale. He also discussed how flexible automation is the key to effectively bridging and seamlessly coordinating both IT and developer needs for component orchestration across disparate clouds – an increasingly important requirement at today’s multi-cloud enterprise.
Modern software design has fundamentally changed how we manage applications, causing many to turn to containers as the new virtual machine for resource management. As container adoption grows beyond stateless applications to stateful workloads, the need for persistent storage is foundational - something customers routinely cite as a top pain point. In his session at @DevOpsSummit at 21st Cloud Expo, Bill Borsari, Head of Systems Engineering at Datera, explored how organizations can reap the bene...
We are seeing a major migration of enterprises applications to the cloud. As cloud and business use of real time applications accelerate, legacy networks are no longer able to architecturally support cloud adoption and deliver the performance and security required by highly distributed enterprises. These outdated solutions have become more costly and complicated to implement, install, manage, and maintain.SD-WAN offers unlimited capabilities for accessing the benefits of the cloud and Internet. ...
"DevOps is set to be one of the most profound disruptions to hit IT in decades," said Andi Mann. "It is a natural extension of cloud computing, and I have seen both firsthand and in independent research the fantastic results DevOps delivers. So I am excited to help the great team at @DevOpsSUMMIT and CloudEXPO tell the world how they can leverage this emerging disruptive trend."
In this presentation, you will learn first hand what works and what doesn't while architecting and deploying OpenStack. Some of the topics will include:- best practices for creating repeatable deployments of OpenStack- multi-site considerations- how to customize OpenStack to integrate with your existing systems and security best practices.
Security, data privacy, reliability and regulatory compliance are critical factors when evaluating whether to move business applications from in-house client hosted environments to a cloud platform. In her session at 18th Cloud Expo, Vandana Viswanathan, Associate Director at Cognizant, In this session, will provide an orientation to the five stages required to implement a cloud hosted solution validation strategy.
Business professionals no longer wonder if they'll migrate to the cloud; it's now a matter of when. The cloud environment has proved to be a major force in transitioning to an agile business model that enables quick decisions and fast implementation that solidify customer relationships. And when the cloud is combined with the power of cognitive computing, it drives innovation and transformation that achieves astounding competitive advantage.
Everyone wants the rainbow - reduced IT costs, scalability, continuity, flexibility, manageability, and innovation. But in order to get to that collaboration rainbow, you need the cloud! In this presentation, we'll cover three areas: First - the rainbow of benefits from cloud collaboration. There are many different reasons why more and more companies and institutions are moving to the cloud. Benefits include: cost savings (reducing on-prem infrastructure, reducing data center foot print, redu...
DXWorldEXPO LLC announced today that "IoT Now" was named media sponsor of CloudEXPO | DXWorldEXPO 2018 New York, which will take place on November 11-13, 2018 in New York City, NY. IoT Now explores the evolving opportunities and challenges facing CSPs, and it passes on some lessons learned from those who have taken the first steps in next-gen IoT services.
Founded in 2000, Chetu Inc. is a global provider of customized software development solutions and IT staff augmentation services for software technology providers. By providing clients with unparalleled niche technology expertise and industry experience, Chetu has become the premiere long-term, back-end software development partner for start-ups, SMBs, and Fortune 500 companies. Chetu is headquartered in Plantation, Florida, with thirteen offices throughout the U.S. and abroad.
DXWorldEXPO LLC announced today that ICC-USA, a computer systems integrator and server manufacturing company focused on developing products and product appliances, will exhibit at the 22nd International CloudEXPO | DXWorldEXPO. DXWordEXPO New York 2018, colocated with CloudEXPO New York 2018 will be held November 11-13, 2018, in New York City. ICC is a computer systems integrator and server manufacturing company focused on developing products and product appliances to meet a wide range of ...
René Bostic is the Technical VP of the IBM Cloud Unit in North America. Enjoying her career with IBM during the modern millennial technological era, she is an expert in cloud computing, DevOps and emerging cloud technologies such as Blockchain. Her strengths and core competencies include a proven record of accomplishments in consensus building at all levels to assess, plan, and implement enterprise and cloud computing solutions. René is a member of the Society of Women Engineers (SWE) and a m...
SYS-CON Events announced today that DatacenterDynamics has been named “Media Sponsor” of SYS-CON's 18th International Cloud Expo, which will take place on June 7–9, 2016, at the Javits Center in New York City, NY. DatacenterDynamics is a brand of DCD Group, a global B2B media and publishing company that develops products to help senior professionals in the world's most ICT dependent organizations make risk-based infrastructure and capacity decisions.
The technologies behind big data and cloud computing are converging quickly, offering businesses new capabilities for fast, easy, wide-ranging access to data. However, to capitalize on the cost-efficiencies and time-to-value opportunities of analytics in the cloud, big data and cloud technologies must be integrated and managed properly. Pythian's Director of Big Data and Data Science, Danil Zburivsky will explore: The main technology components and best practices being deployed to take advantage...