Independent discussion of crypto, wallets, cards and markets
Forum Home > Exchanges & Trading > Decentralized Exchanges > Gas versus trading fees: when the DEX loses to the CEX
Gas versus trading fees: when the DEX loses to the CEX71 replies · 2,250 views
Thread ToolsShow Printable Version · Subscribe to this Thread · Search Thread
Where to open an account: Open a Trustee account.

Gas versus trading fees

The DEX-versus-CEX comparison usually stops at the trading fee. The honest comparison includes gas, and on some days gas is the whole story.

When the DEX loses on cost

  • Gas spikes. Congested networks charge whatever the market clears at, and a swap that costs dollars in fees on a quiet day costs tens on a busy one. Small trades get eaten: the fixed gas cost does not scale with size.
  • Approve-then-swap flows. Tokens that need an approval first cost two transactions before the swap even happens.
  • Failed transactions. A swap that reverts on slippage still pays gas. Retry loops multiply the cost.

What batching and aggregation change

  • Aggregators route across venues to find the best net price, but they cannot remove the gas floor
  • Batching services combine actions into fewer transactions, which helps frequent small traders more than anyone
  • Permit-style signatures remove the separate approval transaction, cutting one gas cost per new token

The L2 fee story

Layer-2 networks shifted the math for a period: fees dropped to cents, and small swaps became viable again.

  • The advantage was real while fees stayed low and blocks stayed predictable
  • It eroded when usage grew and sequencer costs returned to market pricing
  • The lesson generalizes: DEX cost advantage is a function of network conditions, not a permanent property

The comparison that is honest

  • Compare total cost per trade: trading fee plus gas plus expected slippage plus retry risk
  • Compare against the CEX's maker-taker fee plus withdrawal costs when moving funds in and out
  • For small, frequent trades, the fixed costs dominate; for large trades, the percentage fees dominate

The takeaway

Gas is part of the DEX fee, and on congested days it is most of it. Price the full stack before choosing a venue: trading fee, gas regime, approval overhead, and retry risk. The DEX that wins on a quiet Tuesday can lose on a busy Saturday, and the L2 story shows that even the winner changes.

Thread Statistics71 replies · 2,250 views