Encyclopedia DeFi · Entry 317
DEX swap costs: separating pool fees, gas and interface charges
In this article
At a glance
Key facts
| Fact | Detail | Source |
|---|---|---|
| Pool fee | The fee allocation depends on the pool and protocol version. | [1] |
| Network fee | Executing a transaction consumes gas independently of the pool fee. | [2] |
| Protocol share | A protocol fee may be taken from the trading fee rather than added as a separate identical charge. | [1] |
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.
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.
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 claimPool 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 claimNetwork 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 claimRevision history
- — First publication after primary-source research and separate automated verification.
Source register
Sources and references
Retrieval dates and locators are recorded individually.- 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 - 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 - 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 - 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 - 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
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 correctionsDegrees 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/