SYS-CON MEDIA Authors: Pat Romanski, Gary Arora, Zakia Bouachraoui, Yeshim Deniz, Liz McMillan

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
Every organization is facing their own Digital Transformation as they attempt to stay ahead of the competition, or worse, just keep up. Each new opportunity, whether embracing machine learning, IoT, or a cloud migration, seems to bring new development, deployment, and management models. The results are more diverse and federated computing models than any time in our history.
On-premise or off, you have powerful tools available to maximize the value of your infrastructure and you demand more visibility and operational control. Fortunately, data center management tools keep a vigil on memory contestation, power, thermal consumption, server health, and utilization, allowing better control no matter your cloud's shape. In this session, learn how Intel software tools enable real-time monitoring and precise management to lower operational costs and optimize infrastructure...
"Calligo is a cloud service provider with data privacy at the heart of what we do. We are a typical Infrastructure as a Service cloud provider but it's been designed around data privacy," explained Julian Box, CEO and co-founder of Calligo, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Isomorphic Software is the global leader in high-end, web-based business applications. We develop, market, and support the SmartClient & Smart GWT HTML5/Ajax platform, combining the productivity and performance of traditional desktop software with the simplicity and reach of the open web. With staff in 10 timezones, Isomorphic provides a global network of services related to our technology, with offerings ranging from turnkey application development to SLA-backed enterprise support. Leadin...
While a hybrid cloud can ease that transition, designing and deploy that hybrid cloud still offers challenges for organizations concerned about lack of available cloud skillsets within their organization. Managed service providers offer a unique opportunity to fill those gaps and get organizations of all sizes on a hybrid cloud that meets their comfort level, while delivering enhanced benefits for cost, efficiency, agility, mobility, and elasticity.
DevOps has long focused on reinventing the SDLC (e.g. with CI/CD, ARA, pipeline automation etc.), while reinvention of IT Ops has lagged. However, new approaches like Site Reliability Engineering, Observability, Containerization, Operations Analytics, and ML/AI are driving a resurgence of IT Ops. In this session our expert panel will focus on how these new ideas are [putting the Ops back in DevOps orbringing modern IT Ops to DevOps].
Darktrace is the world's leading AI company for cyber security. Created by mathematicians from the University of Cambridge, Darktrace's Enterprise Immune System is the first non-consumer application of machine learning to work at scale, across all network types, from physical, virtualized, and cloud, through to IoT and industrial control systems. Installed as a self-configuring cyber defense platform, Darktrace continuously learns what is ‘normal' for all devices and users, updating its understa...
Enterprises are striving to become digital businesses for differentiated innovation and customer-centricity. Traditionally, they focused on digitizing processes and paper workflow. To be a disruptor and compete against new players, they need to gain insight into business data and innovate at scale. Cloud and cognitive technologies can help them leverage hidden data in SAP/ERP systems to fuel their businesses to accelerate digital transformation success.
Concerns about security, downtime and latency, budgets, and general unfamiliarity with cloud technologies continue to create hesitation for many organizations that truly need to be developing a cloud strategy. Hybrid cloud solutions are helping to elevate those concerns by enabling the combination or orchestration of two or more platforms, including on-premise infrastructure, private clouds and/or third-party, public cloud services. This gives organizations more comfort to begin their digital tr...
Most organizations are awash today in data and IT systems, yet they're still struggling mightily to use these invaluable assets to meet the rising demand for new digital solutions and customer experiences that drive innovation and growth. What's lacking are potent and effective ways to rapidly combine together on-premises IT and the numerous commercial clouds that the average organization has in place today into effective new business solutions.
Keeping an application running at scale can be a daunting task. When do you need to add more capacity? Larger databases? Additional servers? These questions get harder as the complexity of your application grows. Microservice based architectures and cloud-based dynamic infrastructures are technologies that help you keep your application running with high availability, even during times of extreme scaling. But real cloud success, at scale, requires much more than a basic lift-and-shift migrati...
David Friend is the co-founder and CEO of Wasabi, the hot cloud storage company that delivers fast, low-cost, and reliable cloud storage. Prior to Wasabi, David co-founded Carbonite, one of the world's leading cloud backup companies. A successful tech entrepreneur for more than 30 years, David got his start at ARP Instruments, a manufacturer of synthesizers for rock bands, where he worked with leading musicians of the day like Stevie Wonder, Pete Townsend of The Who, and Led Zeppelin. David has ...
Darktrace is the world's leading AI company for cyber security. Created by mathematicians from the University of Cambridge, Darktrace's Enterprise Immune System is the first non-consumer application of machine learning to work at scale, across all network types, from physical, virtualized, and cloud, through to IoT and industrial control systems. Installed as a self-configuring cyber defense platform, Darktrace continuously learns what is ‘normal' for all devices and users, updating its understa...
Dion Hinchcliffe is an internationally recognized digital expert, bestselling book author, frequent keynote speaker, analyst, futurist, and transformation expert based in Washington, DC. He is currently Chief Strategy Officer at the industry-leading digital strategy and online community solutions firm, 7Summits.
Addteq is a leader in providing business solutions to Enterprise clients. Addteq has been in the business for more than 10 years. Through the use of DevOps automation, Addteq strives on creating innovative solutions to solve business processes. Clients depend on Addteq to modernize the software delivery process by providing Atlassian solutions, create custom add-ons, conduct training, offer hosting, perform DevOps services, and provide overall support services.