UNI-V3-POS
Ethereum ERC-721 NFT0xc36442b4a4522e871399cd717abdd847ab11fe88
Proxy implementation: 0xc36442b4a4522e871399cd717abdd847ab11fe88
Solidity v0.7.6+commit.7338295f
Non-fungible token collection.
Admin & Risk
Who can change the rules?
Detected upgradeable and mintable controls from the verified ABI.
Current controls
- Implementation
- 0xc36442b4a4522e871399cd717abdd847ab11fe88 ↗ Etherscan → smarts proxy
Overview
Read Functions
Block #25,169,825 · just nowThe domain separator used in the permit signature
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The domain seperator used in encoding of permit signature |
The permit typehash used in the permit signature
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The typehash for the permit |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Returns the address of WETH9 |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The contract address |
Parameters
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| operator | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Parameters
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns the position information associated with a given token ID.
Parameters
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 | The ID of the token that represents the position |
Returns
| Name | Type | Description |
|---|---|---|
| nonce | uint96 | nonce The nonce for permits |
| operator | address | operator The address that is approved for spending |
| token0 | address | token0 The address of the token0 for a specific pool |
| token1 | address | token1 The address of the token1 for a specific pool |
| fee | uint24 | fee The fee associated with the pool |
| tickLower | int24 | tickLower The lower end of the tick range for the position |
| tickUpper | int24 | tickUpper The higher end of the tick range for the position |
| liquidity | uint128 | liquidity The liquidity of the position |
| feeGrowthInside0LastX128 | uint256 | feeGrowthInside0LastX128 The fee growth of token0 as of the last action on the individual position |
| feeGrowthInside1LastX128 | uint256 | feeGrowthInside1LastX128 The fee growth of token1 as of the last action on the individual position |
| tokensOwed0 | uint128 | tokensOwed0 The uncollected amount of token0 owed to the position as of the last computation |
| tokensOwed1 | uint128 | tokensOwed1 The uncollected amount of token1 owed to the position as of the last computation |
Parameters
| Name | Type | Description |
|---|---|---|
| interfaceId | bytes4 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Parameters
| Name | Type | Description |
|---|---|---|
| index | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| index | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Produces the URI describing a particular token ID for a position manager
Parameters
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 | The ID of the token for which to produce a description, which may not be valid |
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The URI of the ERC721-compliant metadata |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Write Functions
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | |
| tokenId | uint256 |
Burns a token ID, which deletes it from the NFT contract. The token must have 0 liquidity and all tokens must be collected first.
Parameters
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 | The ID of the token that is being burned |
Collects up to a maximum amount of fees owed to a specific position to the recipient
Parameters
| Name | Type | Description |
|---|---|---|
| params | tuple | tokenId The ID of the NFT for which tokens are being collected, recipient The account that should receive the tokens, amount0Max The maximum amount of token0 to collect, amount1Max The maximum amount of token1 to collect |
Returns
| Name | Type | Description |
|---|---|---|
| amount0 | uint256 | amount0 The amount of fees collected in token0 |
| amount1 | uint256 | amount1 The amount of fees collected in token1 |
Creates a new pool if it does not exist, then initializes if not initialized
Parameters
| Name | Type | Description |
|---|---|---|
| token0 | address | The contract address of token0 of the pool |
| token1 | address | The contract address of token1 of the pool |
| fee | uint24 | The fee amount of the v3 pool for the specified token pair |
| sqrtPriceX96 | uint160 | The initial square root price of the pool as a Q64.96 value |
Returns
| Name | Type | Description |
|---|---|---|
| pool | address | pool Returns the pool address based on the pair of tokens and fee, will return the newly created pool address if necessary |
Decreases the amount of liquidity in a position and accounts it to the position
Parameters
| Name | Type | Description |
|---|---|---|
| params | tuple | tokenId The ID of the token for which liquidity is being decreased, amount The amount by which liquidity will be decreased, amount0Min The minimum amount of token0 that should be accounted for the burned liquidity, amount1Min The minimum amount of token1 that should be accounted for the burned liquidity, deadline The time by which the transaction must be included to effect the change |
Returns
| Name | Type | Description |
|---|---|---|
| amount0 | uint256 | amount0 The amount of token0 accounted to the position's tokens owed |
| amount1 | uint256 | amount1 The amount of token1 accounted to the position's tokens owed |
Increases the amount of liquidity in a position, with tokens paid by the `msg.sender`
Parameters
| Name | Type | Description |
|---|---|---|
| params | tuple | tokenId The ID of the token for which liquidity is being increased, amount0Desired The desired amount of token0 to be spent, amount1Desired The desired amount of token1 to be spent, amount0Min The minimum amount of token0 to spend, which serves as a slippage check, amount1Min The minimum amount of token1 to spend, which serves as a slippage check, deadline The time by which the transaction must be included to effect the change |
Returns
| Name | Type | Description |
|---|---|---|
| liquidity | uint128 | liquidity The new liquidity amount as a result of the increase |
| amount0 | uint256 | amount0 The amount of token0 to acheive resulting liquidity |
| amount1 | uint256 | amount1 The amount of token1 to acheive resulting liquidity |
Creates a new position wrapped in a NFT
Parameters
| Name | Type | Description |
|---|---|---|
| params | tuple | The params necessary to mint a position, encoded as `MintParams` in calldata |
Returns
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 | tokenId The ID of the token that represents the minted position |
| liquidity | uint128 | liquidity The amount of liquidity for this position |
| amount0 | uint256 | amount0 The amount of token0 |
| amount1 | uint256 | amount1 The amount of token1 |
Call multiple functions in the current contract and return the data from all of them if they all succeed
Parameters
| Name | Type | Description |
|---|---|---|
| data | bytes[] | The encoded function data for each of the calls to make to this contract |
Returns
| Name | Type | Description |
|---|---|---|
| results | bytes[] | results The results from each of the calls passed in via data |
Approve of a specific token ID for spending by spender via signature
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | The account that is being approved |
| tokenId | uint256 | The ID of the token that is being approved for spending |
| deadline | uint256 | The deadline timestamp by which the call must be mined for the approve to work |
| v | uint8 | Must produce valid secp256k1 signature from the holder along with `r` and `s` |
| r | bytes32 | Must produce valid secp256k1 signature from the holder along with `v` and `s` |
| s | bytes32 | Must produce valid secp256k1 signature from the holder along with `r` and `v` |
Refunds any ETH balance held by this contract to the `msg.sender`
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| tokenId | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| tokenId | uint256 | |
| _data | bytes |
Permits this contract to spend a given token from `msg.sender`
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | The address of the token spent |
| value | uint256 | The amount that can be spent of token |
| deadline | uint256 | A timestamp, the current blocktime must be less than or equal to this timestamp |
| v | uint8 | Must produce valid secp256k1 signature from the holder along with `r` and `s` |
| r | bytes32 | Must produce valid secp256k1 signature from the holder along with `v` and `s` |
| s | bytes32 | Must produce valid secp256k1 signature from the holder along with `r` and `v` |
Permits this contract to spend the sender's tokens for permit signatures that have the `allowed` parameter
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | The address of the token spent |
| nonce | uint256 | The current nonce of the owner |
| expiry | uint256 | The timestamp at which the permit is no longer valid |
| v | uint8 | Must produce valid secp256k1 signature from the holder along with `r` and `s` |
| r | bytes32 | Must produce valid secp256k1 signature from the holder along with `v` and `s` |
| s | bytes32 | Must produce valid secp256k1 signature from the holder along with `r` and `v` |
Permits this contract to spend the sender's tokens for permit signatures that have the `allowed` parameter
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | The address of the token spent |
| nonce | uint256 | The current nonce of the owner |
| expiry | uint256 | The timestamp at which the permit is no longer valid |
| v | uint8 | Must produce valid secp256k1 signature from the holder along with `r` and `s` |
| r | bytes32 | Must produce valid secp256k1 signature from the holder along with `v` and `s` |
| s | bytes32 | Must produce valid secp256k1 signature from the holder along with `r` and `v` |
Permits this contract to spend a given token from `msg.sender`
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | The address of the token spent |
| value | uint256 | The amount that can be spent of token |
| deadline | uint256 | A timestamp, the current blocktime must be less than or equal to this timestamp |
| v | uint8 | Must produce valid secp256k1 signature from the holder along with `r` and `s` |
| r | bytes32 | Must produce valid secp256k1 signature from the holder along with `v` and `s` |
| s | bytes32 | Must produce valid secp256k1 signature from the holder along with `r` and `v` |
Parameters
| Name | Type | Description |
|---|---|---|
| operator | address | |
| approved | bool |
Transfers the full amount of a token held by this contract to recipient
Parameters
| Name | Type | Description |
|---|---|---|
| token | address | The contract address of the token which will be transferred to `recipient` |
| amountMinimum | uint256 | The minimum amount of token required for a transfer |
| recipient | address | The destination address of the token |
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| tokenId | uint256 |
Called to `msg.sender` after minting liquidity to a position from IUniswapV3Pool#mint.
Parameters
| Name | Type | Description |
|---|---|---|
| amount0Owed | uint256 | The amount of token0 due to the pool for the minted liquidity |
| amount1Owed | uint256 | The amount of token1 due to the pool for the minted liquidity |
| data | bytes | Any data passed through by the caller via the IUniswapV3PoolActions#mint call |
Unwraps the contract's WETH9 balance and sends it to recipient as ETH.
Parameters
| Name | Type | Description |
|---|---|---|
| amountMinimum | uint256 | The minimum amount of WETH9 to unwrap |
| recipient | address | The address receiving ETH |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| approved | address | ✓ | |
| tokenId | uint256 | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| operator | address | ✓ | |
| approved | bool |
Emitted when tokens are collected for a position NFT
| Name | Type | Indexed | Description |
|---|---|---|---|
| tokenId | uint256 | ✓ | The ID of the token for which underlying tokens were collected |
| recipient | address | The address of the account that received the collected tokens | |
| amount0 | uint256 | The amount of token0 owed to the position that was collected | |
| amount1 | uint256 | The amount of token1 owed to the position that was collected |
Emitted when liquidity is decreased for a position NFT
| Name | Type | Indexed | Description |
|---|---|---|---|
| tokenId | uint256 | ✓ | The ID of the token for which liquidity was decreased |
| liquidity | uint128 | The amount by which liquidity for the NFT position was decreased | |
| amount0 | uint256 | The amount of token0 that was accounted for the decrease in liquidity | |
| amount1 | uint256 | The amount of token1 that was accounted for the decrease in liquidity |
Emitted when liquidity is increased for a position NFT
| Name | Type | Indexed | Description |
|---|---|---|---|
| tokenId | uint256 | ✓ | The ID of the token for which liquidity was increased |
| liquidity | uint128 | The amount by which liquidity for the NFT position was increased | |
| amount0 | uint256 | The amount of token0 that was paid for the increase in liquidity | |
| amount1 | uint256 | The amount of token1 that was paid for the increase in liquidity |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| tokenId | uint256 | ✓ |