Configuration of liquidity pools used in JEX DEX aggregator.
Note that pools from JEXchangeDefi, xExchange and OneDex are automatically added to the DEX aggregator.
No configuration is required for these pool.
Create a pull request on https://github.com/javier-nft/jex-router-pools with the following changes.
Add the pool in the corresponding file in pools folder.
A pool is a JSON structure composed of:
- name = pool name
- sc_address = address of the smart contract
- tokens_in = list of input token identifiers
- tokens_out = list of output token identifiers
- type = type of pool among:
- "ashswap_stablepool"
- "ashswap_v2"
- "exrond"
- "jexchange" = JEXchange orderbook
- "jexchange_lp" = JEXchange liquidity pools
- "onedex"
- "vestadex"
- "xexchange"
Examples:
{
"name": "AshSwap: USDC/USDT",
"sc_address": "erd1qqqqqqqqqqqqqpgqs8p2v9wr8j48vqrmudcj94wu47kqra3r4fvshfyd9c",
"tokens_in": ["USDC-c76f1f", "USDT-f8c08c"],
"tokens_out": ["USDC-c76f1f", "USDT-f8c08c"],
"type": "ashswap_stablepool"
}
{
"name": "xExchange: CYBER/EGLD",
"sc_address": "erd1qqqqqqqqqqqqqpgq5g7xxmpuf6nmux3r3spjxv0wleyypz8q2jpsyc3nh8",
"tokens_in": ["CYBER-489c1c", "WEGLD-bd4d79"],
"tokens_out": ["CYBER-489c1c", "WEGLD-bd4d79"],
"type": "vestadex"
}