Skip to main content
This Processor enables token swaps from a Pancakeswap pool. The swap is executed via Pancakeswap’s Universal Router contract, the same contract used when you swap tokens through the Pancakeswap interface. Supported pool types for swapping:
  • Pancakeswap V2
  • Pancakeswap V3
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: Swapping FLOKI tokens to WBNB

Example: Swapping FLOKI tokens to WBNB

In the example above, the configuration swaps FLOKI tokens to BNB using the FLOKI/WBNB pool on the BNB network.

Configuration fields

How to choose Gas Limit and Gas Price

If you want your transaction to be mined faster by competing on gas, or if the Processor cannot estimate the Gas Limit for certain transactions, you can manually enter the Gas Limit and Gas Price for the Processor. For example, if you want to swap tokens in the FLOKI/WBNB pool, review several recent transactions to see their Gas Limit and Gas Price. This will help you select suitable values for the Processor. Using the following transaction as a reference: https://bscscan.com/tx/0xf440fc6449d5363ea0e948b4956347a92023bc8ec3207230748a7d4e8a510509, you can set the Gas Price (Gwei) to 1 Gwei and the Gas limit to 235798 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