Page cover

Custom exchange

Please read this guide before using a custom exchange for your ERC-20 token.

Custom DEXes are supported on 20lab.app for users who want to use exchanges that aren't listed in our default options. If you want to use a DEX that we haven't added yet, you can do this by selecting the "Custom exchange" option. Once you choose your DEX, follow these steps to make sure your token will work properly:

1. Find the RouterV2 Smart Contract Address

You'll need to find the RouterV2 address and enter it below the "Custom Exchange" dropdown menu. Here's how to find it:

  • Go to your DEX's documentation or website

  • Look for a section called "deployed contract addresses" or "smart contracts"

  • Find the RouterV2 address, copy it, and paste it into generator

2. Check if Your DEX Has the Right Functions

Don't worry - our generator automatically checks if your custom exchange has all the functions it needs before creating your token. Most DEXes that work like Uniswap will work fine, unless they've removed or changed some important functions.

Your DEX needs to have these specific functions for everything to work properly:

RouterV2 Functions:

function factory() external pure returns (address);

function WETH() external pure returns (address);

function addLiquidityETH(
    address token,
    uint amountTokenDesired,
    uint amountTokenMin,
    uint amountETHMin,
    address to,
    uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);

function swapExactTokensForTokensSupportingFeeOnTransferTokens(
    uint amountIn,
    uint amountOutMin,
    address[] calldata path,
    address to,
    uint deadline
) external;

function swapExactTokensForETHSupportingFeeOnTransferTokens(
    uint amountIn,
    uint amountOutMin,
    address[] calldata path,
    address to,
    uint deadline
) external;

Factory Functions:

function createPair(address tokenA, address tokenB) external returns (address pair);

Once you've confirmed that your DEX's RouterV2 and Factory contracts have these functions, you can create your token without any issues!

Last updated

Was this helpful?