Router v2
Last updated
Last updated
Contract name: PenguinRouter Contract address:
View PenguinRouter.sol on GitHub.
View the PenguinSwap: Router v2 contract on UltronScan.
function factory() external pure returns (address);
Returns the canonical address for PenguinSwap.
For explanations of the following, view the .
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] memory path) internal view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] memory path) internal view returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB);
Adds liquidity to a URC20โURC20 pool.
tokenA
address
The contract address of one token from your liquidity pair.
tokenB
address
The contract address of the other token from your liquidity pair.
amountADesired
uint
The amount of tokenA you'd like to provide as liquidity.
amountBDesired
uint
The amount of tokenA you'd like to provide as liquidity.
amountAMin
uint
The minimum amount of tokenA to provide (slippage impact).
amountBMin
uint
The minimum amount of tokenB to provide (slippage impact).
to
address
Address of LP Token recipient.
deadline
uint
Unix timestamp deadline by which the transaction must confirm.
Removes liquidity from a URC20โURC20 pool.
tokenA
address
The contract address of one token from your liquidity pair.
tokenB
address
The contract address of the other token from your liquidity pair.
liquidity
uint
The amount of LP Tokens to remove.
amountAMin
uint
The minimum amount of tokenA to remove (slippage impact).
amountBMin
uint
The minimum amount of tokenB to remove (slippage impact).
to
address
Address of LP Token recipient.
deadline
uint
Unix timestamp deadline by which the transaction must confirm.