πContract Reference
Router
Discovery functions
function getPools() external pure returns (address[] memory pools)
function getPoolForPair(address tokenA, address tokenB) public view returns (address)Execution functions
function swap(
address tokenIn,
address tokenOut,
uint256 amountIn,
uint256 minAmountOut
) external returns (uint256 amountOut)Quote functions
Referral functions
Router errors
Direct pool interface
Common direct-pool errors
Last updated