How does Cardax work?
How Does Cardax DEX Work?

What is Cardax DEX?

Cardax DEX is a non-custodial, Automated Market Maker (AMM) decentralised exchange on the Cardano blockchain.
The primary goal of the Cardax DEX is to provide users with products (version 1 of the DEX will initially offer token swaps and liquidity pools) with the least amount of congestion possible.

This is achieved in a novel way.

Cardax DEX is centred around the Streaming Merge algorithm, a product of the development team's own design, that no other DEX on the market has.
The Streaming Merge algorithm is Cardax DEX’s solution to the concurrency issue on the Cardano blockchain. By using the time at which orders were placed (and random sorting of simultaneous orders), the Cardax DEX provides real decentralisation by being deterministic, fair and efficient.
Cardax DEX Features. Version 1 of the Cardax DEX features token swaps and liquidity pools, with more upgrades and products launching in future versions.

Streaming Merge.

How does Streaming Merge Work?
When users book their slot in a pool, they are given their own designated “lane”, after which they can place an order.
Once the lane is booked, the user can place orders without waiting. The DEX will provide an estimated waiting time on the Web-App.
Their order details are then packaged as “sealed and opaque”; the only information that is available to the algorithm is the time the order was submitted, the rest is hidden (thus excluding any form of bias from the process).
The Streaming Merge algorithm then sorts the orders by time initiated.
However, when there are multiple orders submitted at a very similar time blockchain limits make it difficult to determine the order they were placed (we refer to these as simultaneous orders), the Streaming Merge algorithm has to work out in what order the orders are processed.
The Streaming Merge algorithm randomly sorts the simultaneous orders. This keeps the whole process fair, as no user can predict the position of their order in the queue.
At this point, the DEX now knows the order in which all orders should be processed, and all lanes are then merged together into the correct order and executed.
Simple right?
Ok, let's apply a simplistic analogy to clear it up.
Imagine the Streaming Merge algorithm is a cashier at a supermarket who is covering multiple checkout belts at the same time.
Customers are given a belt to use (lanes) and load up their shopping. As long as only one product at a time arrives at the cashier, there is no problem; the cashier just processes them as they arrive in front of them.
However, If more than one product arrives at the same time, the cashier randomly selects the order in which the products are scanned.
There is no way that the customer could know ahead of time the order in which the cashier scans the items, it is completely fair.

Fee Structure.

DEX users pay fees to make a transaction on Cardax DEX, as they would do on any DEX.
Each order has:
  • 2 ADA flat fee. It goes to the Cardax Vault.
  • 0.3% trading fee on the swapped token. It goes to the liquidity providers.
  • Cardano network fee for the transaction.
Cardax Vault has multiple uses, including giving rewards, future development, and other use cases.
Copy link
On this page
What is Cardax DEX?
This is achieved in a novel way.
Streaming Merge.
Fee Structure.