Router
Contract info
Contract name: LitedexRouter Contract address: 0x2813203479c8d52a0a7bf4620b9325a753fda9f8
View the Litedex: Router Contract on Bscscan.
Read functions
WETH
Returns the canonical address for WBNB token (WBNB being a vestige from BNB network origins).
factory
Returns the canonical address for LitedexFactory.
getAmountOut
getAmountIn
getAmountsOut
getAmountsIn
quote
Write functions
addLiquidity
Adds liquidity to a BEP20⇄BEP20 pool.
Name | Type | Description |
tokenA |
| The contract address of one token from your liquidity pair. |
tokenB |
| The contract address of the other token from your liquidity pair. |
amountADesired |
| The amount of tokenA you'd like to provide as liquidity. |
amountBDesired |
| The amount of tokenB you'd like to provide as liquidity. |
amountAMin |
| The minimum amount of tokenA to provide (slippage impact). |
amountBMin |
| The minimum amount of tokenB to provide (slippage impact). |
to |
| Address of LP Token recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
addLiquidityETH
Adds liquidity to a BEP20⇄WBNB pool.
Name | Type | |
addLiquidityETH |
| The payable amount in BNB. |
token |
| The contract address of the token to add liquidity. |
amountTokenDesired |
| The amount of the token you'd like to provide as liquidity. |
amountTokenMin |
| The minimum amount of the token to provide (slippage impact). |
amountETHMin |
| The minimum amount of BNB to provide (slippage impact). |
to |
| Address of LP Token recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
removeLiquidity
Removes liquidity from a BEP20⇄BEP20 pool.
Name | Type | |
tokenA |
| The contract address of one token from your liquidity pair. |
tokenB |
| The contract address of the other token from your liquidity pair. |
liquidity |
| The amount of LP Tokens to remove. |
amountAMin |
| The minimum amount of tokenA to remove (slippage impact). |
amountBMin |
| The minimum amount of tokenB to remove (slippage impact). |
to |
| Address of LP Token recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
removeLiquidityETH
Removes liquidity from a BEP20⇄WBNB pool.
Name | Type | |
token |
| The contract address of the token to remove liquidity. |
liquidity |
| The amount of LP Tokens to remove. |
amountTokenMin |
| The minimum amount of the token to remove (slippage impact). |
amountETHMin |
| The minimum amount of BNB to remove (slippage impact). |
to |
| Address of LP Token recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
removeLiquidityETHSupportingFeeOnTransferTokens
Removes liquidity from a BEP20⇄WBNB for tokens that take a fee on transfer.
Name | Type | |
token |
| The contract address of the token to remove liquidity. |
liquidity |
| The amount of LP Tokens to remove. |
amountTokenMin |
| The minimum amount of the token to remove (slippage impact). |
amountETHMin |
| The minimum amount of BNB to remove (slippage impact). |
to |
| Address of LP Token recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
removeLiquidityETHWithPermit
Removes liquidity from a BEP20⇄WBNB and receives BNB, without pre-approval, via permit.
Name | Type | |
token |
| The contract address of the token to remove liquidity. |
liquidity |
| The amount of LP Tokens to remove. |
amountTokenMin |
| The minimum amount of the token to remove (slippage impact). |
amountETHMin |
| The minimum amount of BNB to remove (slippage impact). |
to |
| Address of LP Token recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
approveMax |
| Whether or not the approval amount in the signature is for liquidity or |
v |
| The v component of the permit signature. |
r |
| The r component of the permit signature. |
s |
| The s component of the permit signature. |
removeLiquidityETHWithPermitSupportingFeeOnTransferTokens
Removes liquidity from a BEP20⇄WBNB and receives BNB via permit for tokens that take a fee on transfer.
Name | Type | |
token |
| The contract address of the token to remove liquidity. |
liquidity |
| The amount of LP Tokens to remove. |
amountTokenMin |
| The minimum amount of the token to remove (slippage impact). |
amountETHMin |
| The minimum amount of BNB to remove (slippage impact). |
to |
| Address of LP Token recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
approveMax |
| Whether or not the approval amount in the signature is for liquidity or |
v |
| The v component of the permit signature. |
r |
| The r component of the permit signature. |
s |
| The s component of the permit signature. |
removeLiquidityWithPermit
Removes liquidity from a BEP20⇄BEP20, without pre-approval, via permit.
Name | Type | |
tokenA |
| The contract address of one token from your liquidity pair. |
tokenB |
| The contract address of the other token from your liquidity pair. |
liquidity |
| The amount of LP Tokens to remove. |
amountTokenMin |
| The minimum amount of the token to remove (slippage impact). |
amountETHMin |
| The minimum amount of BNB to remove (slippage impact). |
to |
| Address of LP Token recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
approveMax |
| Whether or not the approval amount in the signature is for liquidity or |
v |
| The v component of the permit signature. |
r |
| The r component of the permit signature. |
s |
| The s component of the permit signature. |
swapETHForExactTokens
Receive an exact amount of output tokens for as little BNB as possible.
Name | Type | |
swapETHForExactTokens |
| Payable BNB amount. |
amountOut |
| The amount tokens to receive. |
path (address[]) |
| An array of token addresses. |
to |
| Address of recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
swapExactETHForTokens
Receive an as many output tokens as possible for an exact amount of BNB.
Name | Type | |
swapExactETHForTokens |
| Payable BNB amount. |
amountOutMin |
| The minimum amount tokens to receive. |
path (address[]) |
| An array of token addresses. |
to |
| Address of recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
swapExactETHForTokensSupportingFeeOnTransferTokens
Receive an as many output tokens as possible for an exact amount of BNB. Supports tokens that take a fee on transfer.
Name | Type | |
swapExactETHForTokensSupportingFeeOnTransferTokens |
| Payable BNB amount. |
amountOutMin |
| The minimum amount tokens to receive. |
path (address[]) |
| An array of token addresses. |
to |
| Address of recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
swapExactTokensForETH
Receive an as much BNB as possible for an exact amount of input tokens.
Name | Type | |
amountIn |
| Payable amount of input tokens. |
amountOutMin |
| The minimum amount tokens to receive. |
path (address[]) |
| An array of token addresses. |
to |
| Address of recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
swapExactTokensForETHSupportingFeeOnTransferTokens
Receive an as much BNB as possible for an exact amount of tokens. Supports tokens that take a fee on transfer.
Name | Type | |
amountIn |
| Payable amount of input tokens. |
amountOutMin |
| The minimum amount tokens to receive. |
path (address[]) |
| An array of token addresses. |
to |
| Address of recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
swapExactTokensForTokens
Receive an as many output tokens as possible for an exact amount of input tokens.
Name | Type | |
amountIn |
| Payable amount of input tokens. |
amountOutMin |
| The minimum amount tokens to receive. |
path (address[]) |
| An array of token addresses. |
to |
| Address of recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
swapExactTokensForTokensSupportingFeeOnTransferTokens
Receive an as many output tokens as possible for an exact amount of input tokens. Supports tokens that take a fee on transfer.
Name | Type | |
amountIn |
| Payable amount of input tokens. |
amountOutMin |
| The minimum amount tokens to receive. |
path (address[]) |
| An array of token addresses. |
to |
| Address of recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
swapTokensForExactETH
Receive an exact amount of ETH for as few input tokens as possible.
Name | Type | |
amountOut |
| Payable amount of input tokens. |
amountInMax |
| The minimum amount tokens to input. |
path (address[]) |
| An array of token addresses. |
to |
| Address of recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
swapTokensForExactTokens
Receive an exact amount of output tokens for as few input tokens as possible.
Name | Type | |
amountOut |
| Payable amount of input tokens. |
amountInMax |
| The minimum amount tokens to input. |
path (address[]) |
| An array of token addresses. |
to |
| Address of recipient. |
deadline |
| Unix timestamp deadline by which the transaction must confirm. |
Interface
Last updated