Quick Reference
Last modified:
Fee tiers
| Fee tier | Tick spacing | Typical use |
|---|
| 0.01 % (100) | 1 | Stablecoin pairs (USDC/DAI) |
| 0.05 % (500) | 10 | Correlated pairs (CTN/stCTN) |
| 0.30 % (3000) | 60 | Most pairs (CTN/USDC) |
| 1.00 % (10000) | 200 | Exotic / low-liquidity pairs |
Key router functions
SwapRouter02
function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);
function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut);
function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn);
function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn);
NonfungiblePositionManager
function mint(MintParams calldata params) external payable returns (uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1);
function increaseLiquidity(IncreaseLiquidityParams calldata params) external payable returns (uint128 liquidity, uint256 amount0, uint256 amount1);
function decreaseLiquidity(DecreaseLiquidityParams calldata params) external payable returns (uint256 amount0, uint256 amount1);
function collect(CollectParams calldata params) external payable returns (uint256 amount0, uint256 amount1);
Factory
function getPool(address tokenA, address tokenB, uint24 fee) external view returns (address pool);
function createPool(address tokenA, address tokenB, uint24 fee) external returns (address pool);
Common token addresses (Centurion Chain)
| Token | Address |
|---|
| WCTN | 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 |
| USDC | 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 |
| USDT | 0xdAC17F958D2ee523a2206206994597C13D831ec7 |
| DAI | 0x6B175474E89094C44Da98b954EedeAC495271d0F |
Useful constants
| Constant | Value | Notes |
|---|
| MIN_TICK | −887,272 | Minimum initializable tick |
| MAX_TICK | 887,272 | Maximum initializable tick |
| MIN_SQRT_RATIO | 4295128739 | Minimum sqrtPriceX96 |
| MAX_SQRT_RATIO | 1461446703485210103287273052203988822378723970342 | Maximum sqrtPriceX96 |
| Q96 | 2⁹⁶ | Fixed-point denominator for sqrtPriceX96 |
| Q128 | 2¹²⁸ | Fixed-point denominator for fee growth |
Tick / price conversions
price = 1.0001 ^ tick
tick = log(price) / log(1.0001)
sqrtPriceX96 = sqrt(price) * 2^96
Deployment addresses
See the full deployment addresses page for all networks.