Create Pool

1. Default Fee Options

The SDK provides predefined fee configurations for different types of trading pairs. These configurations are optimized based on asset volatility and market characteristics:

  • binStep: The step size between bins, determining the price granularity of the pool. Smaller values provide finer price resolution but require more computational resources.

  • baseFactor: A multiplier used in fee calculations, affecting the overall fee structure of the pool.

  • fee: The trading fee rate as a decimal (e.g., '0.0001' = 0.01%). This is the fee charged for each swap transaction.

Fee Tier Recommendations:

  • Low fees (0.01% - 0.05%): Best for stable pairs or low-volatility mainstream assets

  • Medium fees (0.1% - 0.3%): Suitable for medium-volatility assets or mainstream trading pairs

  • High fees (0.4% - 4%): Recommended for high-volatility assets, altcoins, or small market cap pairs

Base fee
Bin Step
Base factor

0.01%

1

10,000

0.02%

1

20,000

0.03%

2

15,000

0.04%

2

20,000

0.05%

5

10,000

0.10%

10

10,000

0.15%

15

10,000

0.20%

20

10,000

0.25%

25

10,000

0.30%

30

10,000

0.40%

50

8,000

0.60%

80

7,500

0.80%

100

8,000

1.00%

100

10,000

2.00%

200

10,000

4.00%

400

10,000

When creating a new pool, choose the fee configuration that best matches your trading pair's characteristics:

2. Create Pool

There are two ways to create a pool:

Method 1: Create Pool Only

Method 2: Create Pool and Add Liquidity in One Transaction

Last updated