The order book decentralized exchange, dYdX, is leaving the Ethereum blockchain to set up a native chain on the Cosmos ecosystem. The move is a surprise as the project defines itself as offering โadvanced cryptofinancial products, powered by the Ethereum blockchain.โ
The exchange is a unique platform offering lending, borrowing, perpetual futures, and margin and spot trading. Users connect their wallets similarly to a standard decentralized exchange and then deposit funds into the custody of dYdX via smart contract. The funds are, however, still only accessible via the usersโ wallets, unlike centralized exchanges. The hybrid offering makes dYdX unique within the Ethereum ecosystem.
Why Cosmos?
dYdX described the move as โrebuilding dYdX as a standalone Cosmos based blockchain featuring a fully decentralized, off-chain, orderbook and matching engine.โ The rebuild will be the fourth version of the DEX using the Tendermint consensus mechanism.
Through the utilization of the Cosmos SDK, the migration will allow the new version to offer, among other features, โfull decentralization.โ Further, Cosmos offers an almost unrivaled cross-chain interoperability through the IBC protocol. The current dYdX token is an Ethereum-based ERC-20 token using StarWareโs StarkEX to facilitate layer-2 functionality. However, the move to Cosmos will allow the dYdX platform to offer a truly taken token on its own blockchain and governance system.
An independent blockchain using the Cosmos SDK dYdX will have its layer-1 token, validators, and staking mechanisms. Therefore, it will not be accountable for updates to Ethereum or have any exposure to issues that may arise ahead of the proof-of-stake merge scheduled for September 2022. On Cosmos,
โeach validator will run an in-memory orderbook that is never committed to consensusโฆ the orderbook that each validator stores is eventually consistent with one another. On a real time basis, orders will be matched together by the network. The resulting trades are then committed on-chain each block. โ
dYdX states that it โembraces radical changes in technologyโ and that Cosmos is an ecosystem that will allow it to continue to improve under its vision.
The core reason for dYdX leaving is the high throughput requirements of running a decentralized system with a live orderbook. This trading mechanism is โcritical to the trading experience pro traders and institutions demandโ and demands it to process over 1,000 transactions per second. By staying on Ethereum, dYdX sees problems with scaling this offering as;
โthe fundamental problem with every L1 or L2 we could develop on is that none can handle even close to the throughput needed to run a first class orderbook and matching engineโ
After the move, traders will no longer have to pay gas fees for transactions but instead, pay fees based on completed trades which will then be paid to stakers and validators.
Abandoning Layer-2
On Ethereum, dYdX has to use the StarkWare Layer 2 to offer some of its products, such as perpetual contract markets. Previously the platform had been looking to move towards a layer-2 to reduce gas fees and allow the exchange to scale.
โEthereum can process around 15 transactions per second (TPS), which is not enough to support the hypergrowth of DeFiโฆ Layer 2 scaling solutions โ in the forms of Rollups โ free up Ethereumโs base layer by offloading execution, leading to reduced gas costs and increased throughput without increasing network load.โ
For the dYdX itself to transition, it will require the ERC-20 token holders to agree to the change as โDYDX, the protocol token of the dYdX protocol, is governed by its holdersโฆ dYdX Trading Inc. do not have control over how it is used.โ The new protocol will be fully open-source and is currently looking to bring on new developers to help with the move.
Credit: Source link