Skip to main content
This Processor enables token swaps from a Uniswap pool. The swap is executed via Uniswap’s Universal Router contract, the same contract used when swapping through the Uniswap interface. Supported pool types for swapping:
  • Uniswap V2
  • Uniswap V3
  • Uniswap V4
Libraries used in the swap Processor code:
Note: This Processor only swaps within a single pool and does not use an aggregator to swap across multiple pools. Therefore, you must configure the pool address for the swap.
Example: Swap DEGEN tokens to ETH

Example: Swap DEGEN tokens to ETH

In the example above, the configuration swaps DEGEN tokens to WETH from the DEGEN/WETH pool on the Base network.

Configuration fields

How to select Gas Limit and Gas Price

If you want to speed up transaction mining by competing on gas, or if the Processor cannot estimate the Gas Limit for certain transactions, you can manually specify the Gas Limit and Gas Price for the Processor. For example, if you want to swap the DEGEN/WETH pool, review several recent transactions to see their Gas Limit and Gas Price. This will help you choose appropriate values for the Processor. Using the following transaction as a reference: https://basescan.org/tx/0x968eb4733010e3ee2501904de8dc987b87233726a917c94a8ba5446cea35d87b, you can set the Gas price (Gwei) to 0.2 Gwei and the Gas limit to 176073 for the Processor.
Example of how to choose values for Gas Price (Gwei) and Gas Limit

Example of how to choose values for Gas Price (Gwei) and Gas Limit