Router Contract
Read Functions
factory
function factory() external pure returns (address);getAmountOut
function getAmountOut(
uint amountIn,
uint reserveIn,
uint reserveOut,
uint24 fee
) public pure virtual override returns (uint amountOut)getAmountIn
function getAmountIn(
uint amountOut,
uint reserveIn,
uint reserveOut,
uint24 fee
) public pure virtual override returns (uint amountIn)getAmountsOut
getAmountsIn
quote
Write functions
addLiquidity
Adds liquidity to a ERC20 ⇄ ERC20 pool
addLiquidityETH
Adds liquidity to a ERC20⇄WJU pool.
Name
Type
removeLiquidity
Removes liquidity from a ERC20⇄ERC20 pool.
removeLiquidityETH
Name
Type
removeLiquidityETHSupportingFeeOnTransferTokens
Removes liquidity from a ERC20⇄WJU for tokens that take a fee on transfer.
Name
Type
removeLiquidityETHWithPermit
Removes liquidity from a ERC20⇄WJU and receives JU, without pre-approval, via permit.
Name
Type
removeLiquidityETHWithPermitSupportingFeeOnTransferTokens
Removes liquidity from a ERC20⇄WJU and receives JU via permit for tokens that take a fee on transfer.
Name
Type
removeLiquidityWithPermit
Removes liquidity from a ERC20⇄ERC20, without pre-approval, via permit.
Name
Type
swapExactTokensForTokens
Receive as many output tokens as possible for an exact amount of input tokens.
Name
Type
swapTokensForExactTokens
Receive an exact amount of output tokens for as few input tokens as possible.
Name
Type
swapExactTokensForTokensSupportingFeeOnTransferTokens
Name
Type
swapExactETHForTokens
Name
Type
swapETHForExactTokens
Name
Type
swapExactTokensForETH
Name
Type
swapTokensForExactETH
Name
Type
swapExactETHForTokensSupportingFeeOnTransferTokens
Name
Type
Last updated