aUniswap docs
AUniswap
uniswapRouter02
Returns the address of the Uniswap swap router contract.
Return Values
uniswapv3Npm
Returns the address of the Uniswap NPM contract.
Return Values
weth
Returns the address of the Weth contract.
Return Values
constructor
swapExactTokensForTokens
Swaps amountIn
of one token for as much as possible of another token.
Setting amountIn
to 0 will cause the contract to look up its own balance, and swap the entire amount, enabling contracts to send tokens before calling this function.
Parameters
Return Values
swapTokensForExactTokens
Swaps as little as possible of one token for an exact amount of another token.
Parameters
Return Values
exactInputSingle
Swaps amountIn
of one token for as much as possible of another token.
Parameters
Return Values
exactInput
Swaps amountIn
of one token for as much as possible of another along the specified path.
Parameters
Return Values
exactOutputSingle
Swaps as little as possible of one token for amountOut
of another token.
Parameters
Return Values
exactOutput
Swaps as little as possible of one token for amountOut
of another along the specified path (reversed).
Parameters
Return Values
sweepToken
Transfers the full amount of a token held by this contract to recipient.
The amountMinimum parameter prevents malicious contracts from stealing the token from users.
Parameters
sweepToken
Transfers the full amount of a token held by this contract to recipient.
The amountMinimum parameter prevents malicious contracts from stealing the token from users.
Parameters
sweepTokenWithFee
Transfers the full amount of a token held by this contract to recipient, with a percentage between 0 (exclusive) and 1 (inclusive) going to feeRecipient.
The amountMinimum parameter prevents malicious contracts from stealing the token from users.
Parameters
sweepTokenWithFee
Transfers the full amount of a token held by this contract to recipient, with a percentage between 0 (exclusive) and 1 (inclusive) going to feeRecipient.
The amountMinimum parameter prevents malicious contracts from stealing the token from users.
Parameters
unwrapWETH9
Unwraps the contract's WETH9 balance and sends it to recipient as ETH.
The amountMinimum parameter prevents malicious contracts from stealing WETH9 from users.
Parameters
unwrapWETH9
Unwraps ETH from WETH9.
Parameters
unwrapWETH9WithFee
Unwraps the contract's WETH9 balance and sends it to recipient as ETH, with a percentage between 0 (exclusive), and 1 (inclusive) going to feeRecipient.
The amountMinimum parameter prevents malicious contracts from stealing WETH9 from users.
Parameters
unwrapWETH9WithFee
Unwraps the contract's WETH9 balance and sends it to recipient as ETH, with a percentage between 0 (exclusive), and 1 (inclusive) going to feeRecipient.
The amountMinimum parameter prevents malicious contracts from stealing WETH9 from users.
Parameters
wrapETH
Wraps ETH.
Client must wrap if input is native currency.
Parameters
refundETH
Allows sending pool transactions exactly as Uniswap original transactions.
Declared virtual as we never send ETH to Uniswap router contract.
_safeApprove
_assertTokenWhitelisted
_getUniswapNpm
_isContract
_getUniswapRouter2
_getWeth
Last updated