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