📎High-performance Exchange

Due to its unique design, GrokSwap can equal centralized exchanges in terms of throughput and latency, a feat accomplished by no other DEX.

A system off-chain that controls every aspect of trade, comparable to the exchange components of leading centralized exchanges.

Trading Engine

For trade execution, W uses an off-chain trading engine, which offers:

  • Extreme performance, processing tens of thousands of orders per second with millisecond latency.

  • Orders are always executed in the exact sequence in which the server receives them.

In contrast, the majority of DEXs execute trades off-chain, which has the following negative effects on blockchain transactions:

  • Low throughput and high latency.

  • Non-deterministic ordering in which the order and inclusion of transactions is determined by miners

Users benefit from a responsive user experience and are protected from sandwich attacks, unsuccessful transactions, and front-running that afflict on-chain DEXs thanks to the GrokSwap trading engine.

Order book

The trading engine is paired with an off-chain order book. This combination leverages the advantages of the trading engine while minimizing gas expenses.On GrokSwap, orders are represented by signed transactions that, among other things, comprise the price and amount. These orders are sent to the trading engine, where they are processed; when they overlap with available liquidity, they are matched and traded; otherwise, they are placed on the order book as a new limit order.A transaction is carried out when orders match. Real-time balance updates enable both traders to quickly resume trading with their updated balances. The network receives the completed deal simultaneously for settlement.Only upon the settlement of a matched trade do on-chain transactions take place. Users are not charged extra network fees for placing and canceling purchases as frequently as they like. Real-time processing of order placements and cancellations enables more sophisticated market-making and trading tactics.

Advanced orders

Advanced order types, which are normally only available on centralized exchanges, can be used when a high-performance trading engine is used. Stop-loss, post-only, and fill-or-kill are a few of these. The addition of these order kinds enables the use of more complex methods that are generally impossible on DEXs. The exchange's smart contract handbook contains a more thorough list of order types, while the W API documentation contains more thorough explanations.​

Swap

GrokSwap offers trading using a straightforward swap interface. Whether or not money has previously been deposited into the platform, the swap option is still available. If money has already been deposited, the exchange will take effect right away. When trading straight from a wallet, three processes are carried out in order: deposit, trade, and withdrawal.

Last updated