0xef740bf23acae26f6492b10de645d6b98dc8eaf3
Solidity v0.8.26+commit.8a97fa7a
Overview
Read Functions
Returns the address of the Uniswap V3 Nonfungible Position Manager used by the router.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the Uniswap V3 Nonfungible Position Manager contract that the router interacts with.✨ AI |
Returns the address of the V4 position manager used by this router.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the V4 position manager contract.✨ AI |
Public view function to be used instead of msg.sender, as the contract performs self-reentrancy and at times msg.sender == address(this). Instead msgSender() returns the initiator of the lock
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
The Uniswap v4 PoolManager contract
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Write Functions
Executes encoded commands along with provided inputs.
Parameters
| Name | Type | Description |
|---|---|---|
| commands | bytes | A set of concatenated commands, each 1 byte in length |
| inputs | bytes[] | An array of byte strings containing abi encoded inputs for each command |
Executes encoded commands along with provided inputs.
Parameters
| Name | Type | Description |
|---|---|---|
| commands | bytes | A set of concatenated commands, each 1 byte in length |
| inputs | bytes[] | An array of byte strings containing abi encoded inputs for each command |
| deadline | uint256 |
Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.
Parameters
| Name | Type | Description |
|---|---|---|
| amount0Delta | int256 | The amount of token0 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token0 to the pool. |
| amount1Delta | int256 | The amount of token1 that was sent (negative) or must be received (positive) by the pool by the end of the swap. If positive, the callback must send that amount of token1 to the pool. |
| data | bytes | Any data passed through by the caller via the IUniswapV3PoolActions#swap call |
Execute an unlock callback using provided data and return the callback response bytes.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| data | bytes | Encoded input data for the unlock callback, supplied by the caller or a prior operation.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes | Raw bytes returned by the callback, representing the result or instructions for the router's next steps.✨ AI |