Skip to article
Degrees of SatoshiFollow the connections.
Degrees of Satoshi/ Encyclopedia

Encyclopedia DeFi · Entry 317

DEX swap costs: separating pool fees, gas and interface charges

Theme
DeFi
Sources
5 cited records
Reading time
About 3 minutes
Automated verification
Substantive update
In this article

At a glance

Key facts

Key facts for DEX swap costs: separating pool fees, gas and interface charges
FactDetailSource
Pool feeThe fee allocation depends on the pool and protocol version.[1]
Network feeExecuting a transaction consumes gas independently of the pool fee.[2]
Protocol shareA protocol fee may be taken from the trading fee rather than added as a separate identical charge.[1]
01

Reconcile the quote with the receipt

Suppose an interface quotes 997 units received from a 1,000-unit reference value after pool costs and price impact. If network execution separately costs a hypothetical 2 units in the same valuation currency, the net outcome is 995. Subtracting the embedded 3 again would double-count it.

Use a common valuation time when converting native gas into dollars. A wallet’s maximum gas budget is not necessarily the amount paid.

02

Separate the charge from its recipient

The trader’s total pool fee and the portion ultimately credited to LPs are different numbers. The retrieved Uniswap documentation describes protocol shares and version-specific rules. An LP revenue figure cannot be substituted for the fee a trader paid.

Aave’s swap-feature documentation gives an example of interface fees that vary by operation and pair. Check the applicable quote and policy; this article does not assume a permanent fee schedule.

03

A failed trade can still have a cost

If an on-chain transaction is included but reverts, gas used in execution can still be charged even though the swap does not settle. A quote that never becomes an included transaction is a different event. Signed-order systems can arrange for a filler to pay execution gas, but someone still bears that cost economically.

Direct answers

Questions people ask

Is a zero interface fee the same as a free swap?

No. Pool fees, execution costs and price impact are separate. Read the final trade amounts and identify which party pays any gas.

Inspect the evidence

The answer and key facts have stable claim links. These records retain the scope and qualification when reused.

A DEX swap can involve a pool trading fee and network execution cost. Aave’s documented swap interface also shows that some integrations charge a separate service fee. Price impact is another source of a worse exchange rate, but it is not the same as a named fee. Compare the final amount received and separately paid costs; some fees are already included in the quote.

Scope: DeFi · data through 2026-10-02. Verification: verified · 2026-10-02T19:18:00.092Z.

Link to this claim
Pool fee: The fee allocation depends on the pool and protocol version.

Scope: DeFi · data through 2026-10-02. Verification: verified · 2026-10-02T19:18:00.092Z.

Link to this claim
Network fee: Executing a transaction consumes gas independently of the pool fee.

Scope: DeFi · data through 2026-10-02. Verification: verified · 2026-10-02T19:18:00.092Z.

Link to this claim
Protocol share: A protocol fee may be taken from the trading fee rather than added as a separate identical charge.

Scope: DeFi · data through 2026-10-02. Verification: verified · 2026-10-02T19:18:00.092Z.

Link to this claim
Revision history
  1. — First publication after primary-source research and separate automated verification.

Source register

Sources and references

Retrieval dates and locators are recorded individually.
  1. FeesUniswap

    Separates liquidity-provider and protocol accounting; no universal live fee schedule asserted.

    Locator: Swap fees; Pool fees tiers; Protocol fees · Version / scope: Documentation retrieved for the 2026-10-02 editorial scope; content hash recorded · Retrieved: 2026-10-02T18:53:19.509ZOpen source
  2. Gas and feesethereum.org

    Network resource cost separately from swap fees.

    Locator: Gas; transaction fees; failed transactions · Version / scope: Documentation retrieved 2026-10-02 · Retrieved: 2026-10-02T18:53:23.863ZOpen source
  3. Single SwapsUniswap

    Version-specific router constraints and worked integration examples.

    Locator: exactInputSingle; exactOutputSingle; deadline; amountOutMinimum; amountInMaximum · Version / scope: Documentation retrieved for the 2026-10-02 editorial scope; content hash recorded · Retrieved: 2026-10-02T18:53:19.662ZOpen source
  4. Aave v3 Swap FeaturesAave

    Documented adapter/flash-loan/DEX composition; availability varies by market.

    Locator: Repay with collateral; Collateral Swap; Debt Swap · Version / scope: Documentation retrieved for the 2026-10-02 editorial scope; content hash recorded · Retrieved: 2026-10-02T18:53:21.663ZOpen source
  5. UniswapX OverviewUniswap

    Outcome-based swap authorization and filler settlement.

    Locator: Signed orders; fillers; auctions · Version / scope: Documentation retrieved for the 2026-10-02 editorial scope; content hash recorded · Retrieved: 2026-10-02T18:53:19.990ZOpen source
How this article was made

Research and drafting use AI assistance. A separate automated review checks claims against primary sources; no external expert or named human review is implied. Publication, substantive editing, source retrieval and verification are recorded separately. This version was independently checked by an automated reviewer on 2 October 2026.

Editorial method and corrections

Degrees of Satoshi editorial project. “DEX swap costs: separating pool fees, gas and interface charges.” Published 2026-10-02; updated 2026-10-02. https://degreesofsatoshi.com/encyclopedia/dex-swap-fee-breakdown/