📘Adding Additional Tokens
Add trade support for any token to your widget
The prop tokenListAddendum
of type TokenInfoExternal
is used to add tokens not found in the default token list. Type TokenInfoExternal
is an extension of the type TokenInfo
and contains the following fields:
Since many tokens don't have sufficient liquidity on every DEX to perform swaps, this value dictates what DEX to use. Currently, there are two supported options:
routerModel Value | DEX |
---|---|
| Uniswap (defaults to this DEX if |
| Quickswap |
Let's look at an example. Say you want to add the tokens VOXEL and SAND, both on Polygon. You want VOXEL to be traded through Quickswap, and SAND on Uniswap. The TokenListAddendum
prop would be constructed like this:
Last updated