How Does a ‘Revert’ Transaction on a DEX Differ from a Simple Cancellation on a CEX?

A revert transaction on a DEX (Decentralized Exchange) occurs when the execution fails due to a pre-set condition, like exceeding the slippage tolerance. While the state change (the trade) is reversed, the transaction is still broadcast and mined, meaning the user still pays the 'gas fee' for the computational work.

A simple cancellation on a CEX (Centralized Exchange) is an off-chain instruction that usually incurs no fee if the order was not executed.

How Does the Concept of ‘Atomic Swaps’ in Crypto Relate to the FOK Principle?
How Is the Total Transaction Fee Calculated Using Gas and Gas Price?
What Is the ‘Nothing at Stake’ Problem Unique to Some PoS Systems?
What Is EIP-1559 and How Did It Change the Gas Fee Mechanism?
What Happens to a Transaction If the Price Movement Exceeds the Set Slippage Tolerance?
How Has Ethereum’s EIP-1559 Changed the Dynamics of Gas Fee Bidding?
Can a Transaction Be Partially Executed and Still Consume Gas?
What Is the Concept of “Gas Limit” and How Does It Differ from Gas Price?

Glossar