Network costs are paid to the network (not Uniswap Labs) to process your transaction. By default, the Uniswap Wallet automatically estimates costs that are aligned with current market prices. Advanced users can manually adjust them to speed up transaction processing time or reduce costs. Customizing network costs can impact your swap in different ways.
In general, if fees are set too low, your transaction may take longer to confirm or could fail during periods of high network activity. If fees are set too high, you may overpay for transaction processing.
There are three costs you can adjust in the swap settings: max base fee, priority fee, and gas limit.
Max base fee
The max base fee is the highest base fee per gas unit you're willing to pay. The base fee fluctuates with network demand. If the network's base fee exceeds your max when your transaction is processed, the transaction will not go through.
Priority fee
On networks that support EIP-1559, the priority fee is an additional fee paid to validators or sequencers to incentivize them to prioritize your transaction first. A higher priority fee can help your transaction confirm faster.
Gas limit
The gas limit is the maximum amount of network tokens your transaction is allowed to use. The wallet sets this automatically based on the complexity of your swap. Setting it too low can cause your transaction to fail, and you will still lose the tokens spent up to that point.
Custom network costs can be set on the Uniswap Wallet mobile app, embedded wallet, and browser extension.
To enable custom network costs
- Select the Settings icon.
- Select “Advanced”.
- Select “Network cost” and toggle the selection from “Auto” to “Custom”.
To set custom network costs on a particular swap
- In your swap, select the network cost.
- Make your desired changes, then select “Save”.
- Review and confirm your swap as normal.
Note: Changes to network costs only affect the current swap. Your settings will reset to the defaults for your next transaction.