Validate if the block timestamp has not reached the deadline yet, use for transactions with a deadline.
Reverts if the current block's timestamp is greater than the specified deadline.
Timestamp to check against current block's timestamp
Returns the current block timestamp. Used for overriding by mock contracts for tests.
Nonfungible tokens that support an approve via signature, i.e. permit for ERC721.
Immutable variables that are used by Periphery contracts.
keccak256 hash of the pool's creation code. Used to compute the pool address without reading storage from the Factory
A helper contract to handle transfers, wrapping and unwrapping of tokens.
Unwraps the contract's entire WETH balance to ETH , then transfers them to the recipient.
Input Field
Type
Explanation
Contract's WETH balance should not be lower than this amount
Desired recipient of unwrapped ETH
Transfers the contract's entire token balance to the recipient
Input Field
Type
Explanation
Contract's token balance should not be lower than this amount
Desired recipient of the token
Transfers all ETH balance to the sender.
Internal function to help transfer tokens from the sender to the recipient. If token is WETH and the contract has enough ETH balance, then wrap and transfer WETH , otherwise use RouterTokenHelper to handle transfers.
Input Field
Type
Explanation
Address to pull token funds from
Desired recipient of the token
Inherits RouteTokenHelper . Contains additional functions to charge a fee for transfers as well.
Unwraps the contract's entire WETH balance to ETH , then transfers them to the recipient. Charges a fee which is transferred to feeRecipient
Input Field
Type
Explanation
Contract's WETH balance should not be lower than this amount
Desired recipient of unwrapped ETH
Fee to charge in basis points
Address to receive the fee charged
Transfers the contract's entire token balance to the recipient. Charges a fee which is transferred to feeRecipient.
Input Field
Type
Explanation
Contract's token balance should not be lower than this amount
Desired recipient of the token
Fee to charge in basis points
Address to receive the fee charged
Enables calling multiple methods in a single call to the contract.
Uses delegateCall to sequentially execute functions, then return the result of each execution.
Input arrow-up-right
encoded function data for each of the calls to make to this contract
Output arrow-up-right
results from each of the calls passed in
A helper contract to handle liquidity related actions, including mint/add/remove liquidity.
Used when minting a new position or adding liquidity to an existing one.
an array containing 2 values tickLowerPrevious and tickUpperPrevious which are expected to be the nearest initialized tick <= tickLower and tickUpper respectively
token0 amount user wants to add
token1 amount user wants to add
minimum token0 amount that should be used
minimum token1 amount that should be used
Data for callback from Pool contract.
address to transfer token0/token1 from
Mint callback function implementation called by a Pool.
Input Field
Type
Explanation
token0 amount requested by the pool
token1 amount requested by the pool
Add liquidity to a pool. token0 and token1 should be in the correct order, i.e token0 < token1 .
Input arrow-up-right
Parameters for addiing liquidity to a pool
Output arrow-up-right
amount of liquidity added
amount of token0 required
amount of token1 required
latest feeGrowthInsideLast calculated by the pool
Function to encode input parameters to CallbackData
Input Field
Type
Explanation
Function for computing the pool address with the given input parameters.
Input Field
Type
Explanation