A trustless economy requires each service to be decentralized and open-sourced. Developers and entrepreneurs understand the paradigm. Price valuations, transaction volume, and adoption levels have exploded for the decentralized exchange solutions such as 0x Protocol currently available.
Cryptocurrencies were created as an alternative to centralized banking and payment services. The practice of requiring trust in a third party in order to gain access to an ecosystem that is trustless in nature is counterintuitive to the core philosophy of blockchain technology.
Despite the fact that most cryptocurrencies are secured by decentralized architectures, almost all trades between currencies take place on centralized exchanges. Any layer of centralization puts user funds at risk.
Decentralized exchanges (DEXs) offer a true peer-to-peer exchange of cryptocurrencies without the need for intermediaries. This new evolution in technology addresses the risks associated with centralized exchanges taking custody of user assets. Leveraging open source technology (0x being one of those technologies described below) and a lack of a single point of control promote trustless transactions where third parties are not needed for facilitation. The key benefit is that users maintain full control of their assets throughout the process.
Why 0x Protocol
Decentralized exchanges (DEXs) and applications leverage the smart contracts and libraries of the open-sourced 0x protocol project. With multiple exchanges using the same 0x protocol as their infrastructure, they create an open-standard in the exchange of value on the Ethereum network. The project supplies a base layer of infrastructure that facilitates interoperability between exchanges.
Simply put, exchanges can share their order books. For the first time, the concept of a global order book can be imagined. Free of borders and geolocation, exchanges can pool their available liquidity in the form of buy and sell orders that any other exchange can pull from. As long as the exchanges use the 0x protocol, the orders are interconnected as they share the same format and can be matched with any other order from a different application.
While sharing of order books is optional, there are projects already on the market with incentives for larger exchanges to share with the smaller, and possibly newer ones. A new DEX could be created and join a global pool of orders and have nearly instant liquidity for their users. With the barrier to entry lower, new players can enter the space and create a competitive landscape, which in turn benefits the users.
The general idea behind how a decentralized exchange would work with the 0x protocol is as follows:
- A user submits a buy or sell request to the network.
- The counterparty to the request is found and signs the request digitally. A response is created in the form of a counter order.
- Both orders are sent to a smart contract that executes the transaction and transfers the digital assets to the respective wallets.
To provide the liquidity options needed to compete with the massively centralized exchanges, a hybrid of solutions is needed. This is where the state channel technology comes into play in the form of “relayers” on the network.
Third parties can create relayers that hold the entire order book of an exchange in which users send their orders to. Any party that builds a decentralized exchange on the 0x protocol infrastructure can be referred to as a “relayer”. Each exchange controls their own individual order books (the state channel concept) with trades conducted with the series of smart contracts provided by 0x protocol.
The benefit of shared liquidity pools is enabled by individual “relayers”. Each has the option to share with other “relayers” on the network. Incentivized with various options other than the benefit to their customers, larger exchanges can share with smaller ones.
With a truly innovative hybrid solution for the many disadvantages plaguing decentralized exchanges.