Functions
Last updated
Last updated
This section provides detailed documentation for all functions available in the CoolDEX contract.
- Creates a new liquidity pool on the DEX
- Swaps tokens by specifying the input amount
- Swaps tokens by specifying the output amount
- Adds liquidity to a pool
- Removes liquidity from a pool
- Withdraws accumulated profit and loss
Each function documentation includes:
Parameter descriptions
Required accounts
Function logic
Example usage