Fees & trade costs

Build a swap-size sensitivity table from comparable quotes

Compare multiple swap sizes using a matrix that keeps timestamps, output assets and fee treatment consistent.

A swap-size sensitivity table shows how execution changes as the requested amount rises. Build it from comparable quotes, then calculate net results for each size. Do not multiply one small quote by ten and label the result a quote for ten times the amount.

Construct a small matrix

The following numbers are hypothetical, with both assets valued at one dollar for comparison:

InputQuoted outputSeparate costTotal shortfallShortfall rate
10099.800.500.700.70%
1,0009960.604.600.46%
10,0009,8501.20151.201.512%

The middle size has the lowest modeled percentage cost. Fixed-cost dilution helps between the first two rows; poorer execution dominates the final row. This shape is an example, not an observed market pattern.

Control what changes

Keep token contracts, direction, network, quote conditions and timing consistent. Record the selected route for each size because a route switch can explain a change in the curve. Pool execution depends on available liquidity at the traversed prices, so size is an economically meaningful input.

Interpret the rows conservatively

Each row is an alternative requested trade, not necessarily one segment of a sequence. Executing the first row changes the state before the next row could execute. A sum of independent quotes therefore does not automatically represent a feasible split execution.

Use the table to identify where more inspection is needed: a sudden deterioration, a route change, or a network-cost jump. Then obtain a fresh quote for the actual intended size. The table helps evaluate a chosen cost budget; it does not select a universally optimal trade size or forecast future liquidity.

Sources & verification (1)

Source-check date is recorded in the article details. URLs are provided for manual verification. Use Copy to keep this page open.

  1. Understanding Swaps on Uniswap

    Exact-input minimum output, exact-output maximum input, quote-size price impact and swap execution distinctions.

    https://developers.uniswap.org/docs/get-started/concepts/traders/swaps

Continue reading

Use a cost range when gas and quotes can change Does waiting for cheaper gas actually reduce total swap cost? When fixed transaction costs dominate a small swap