Copy function getReserves () public view returns ( uint256 , uint256 , uint256 ) {
return (
_getPoolBalance (token0). toInt256 () ,
_getPoolBalance (token1). toInt256 () ,
block.timestamp
);
}
Copy function quoteAddLiquidity (
address tokenA ,
address tokenB ,
bool stable ,
uint256 amountADesired ,
uint256 amountBDesired
) external view returns ( uint256 amountA , uint256 amountB , uint256 liquidity);
function addLiquidity (
address tokenA ,
address tokenB ,
bool stable ,
uint256 amountADesired ,
uint256 amountBDesired ,
uint256 amountAMin ,
uint256 amountBMin ,
address to ,
uint256 deadline
) external returns ( uint256 amountA , uint256 amountB , uint256 liquidity);
function addLiquidityETH (
address token ,
bool stable ,
uint256 amountTokenDesired ,
uint256 amountTokenMin ,
uint256 amountETHMin ,
address to ,
uint256 deadline
)
external
payable
returns ( uint256 amountToken , uint256 amountETH , uint256 liquidity);
Copy function quoteRemoveLiquidity ( address tokenA , address tokenB , bool stable , uint256 liquidity)
external
view
returns ( uint256 amountA , uint256 amountB)
function removeLiquidity (
address tokenA ,
address tokenB ,
bool stable ,
uint256 liquidity ,
uint256 amountAMin ,
uint256 amountBMin ,
address to ,
uint256 deadline
) public returns ( uint256 amountA , uint256 amountB);
function removeLiquidityETH (
address token ,
bool stable ,
uint256 liquidity ,
uint256 amountTokenMin ,
uint256 amountETHMin ,
address to ,
uint256 deadline
) public returns ( uint256 amountToken , uint256 amountETH);