Fees & trade costs

What sponsored gas changes in a swap-cost comparison

Explain the difference between a zero user gas payment and the computation cost funded by a sponsor.

Sponsored gas changes who funds execution. It can reduce the user's direct cash cost without making the network computation free. For a swap comparison, count the amount the user actually pays and disclose any recovered charge or eligibility condition.

Two different sponsorship outcomes

Suppose a hypothetical transaction consumes native gas worth $0.50. In arrangement A, a sponsor pays that amount and the user receives the full quoted output with no other execution charge. The user's direct gas cost is zero.

In arrangement B, the sponsor still pays the native fee but deducts output tokens worth $0.70. The user avoids holding native tokens, yet bears a $0.70 economic deduction. Describing both outcomes simply as free gas would conceal a material difference.

ERC-4337's paymaster mechanism permits an entity other than the sender to fund an operation. The specification provides the mechanism, while the surrounding service determines whether the user receives a subsidy or reimburses the sponsor.

Separate eligibility from permanent pricing

A sponsor can apply conditions, limits or a finite budget. Do not project a promotional benefit across all future swaps unless the actual terms support that assumption. A first-use subsidy also should not be averaged into repeated-use costs without showing how many transactions it covers.

Evaluate net output and operational fit

For equal input and final assets, compare output after any deduction with the alternative output minus separate native gas. Include required setup transactions that the sponsorship does not cover.

The absence of a native-gas payment can solve a wallet funding problem, which may matter even if the token-denominated cost is slightly higher. Present that benefit separately from a claim of lower cost. Preserve the sponsorship terms and the final balance changes so that a zero direct payment can be distinguished from an undisclosed reimbursement or a one-time subsidy.

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. ERC-4337: Account Abstraction Using Alt Mempool

    Paymasters can fund operations; support for sponsored and token-denominated fee arrangements.

    https://eips.ethereum.org/EIPS/eip-4337

Continue reading

Count rebates only when measuring the cost they actually offset Compare swapping where funds already are with moving them first Liquidity on another network does not deepen a local pool