V3OpenFeeAdapter
Ethereum0xf2371551fe3937db7c750f4dfabe5c2fffdcbf5a
Solidity v0.8.29+commit.ab55807c
Admin & Risk
Who can change the rules?
Detected ownable controls from the verified ABI.
Current controls
- Owner
- 0x1a9c8182c09f50c8318d769245bea52c32be35bc ↗ Etherscan → smarts
Overview
Read Functions
Block #25,170,020 · just nowReturns
| Name | Type | Description |
|---|---|---|
| — | address | The Uniswap V3 Factory contract. |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address where collected fees are sent. |
Sentinel value stored to represent an explicit zero fee (disabled)
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 |
The global default fee applied when no tier or pool override is set
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 | The encoded global default fee value |
Legacy getter for backwards compatibility
Parameters
| Name | Type | Description |
|---|---|---|
| feeTier | uint24 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The authorized address to set fees-by-fee-tier |
Returns the fee tier default for a given fee tier
Parameters
| Name | Type | Description |
|---|---|---|
| feeTier | uint24 | The fee tier to query |
Returns
| Name | Type | Description |
|---|---|---|
| feeValue | uint8 | feeValue The encoded fee value for the tier (0 if not set) |
Parameters
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint24 | The fee tiers enabled on the factory |
Resolves the fee for a pool using waterfall: pool override → tier default → global
Parameters
| Name | Type | Description |
|---|---|---|
| pool | address | The pool address to resolve fee for |
Returns
| Name | Type | Description |
|---|---|---|
| fee | uint8 | fee The resolved fee value (decoded) |
Returns the current owner of the factory
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the factory owner |
Returns the pool-specific override for a given pool
Parameters
| Name | Type | Description |
|---|---|---|
| pool | address | The pool address to query |
Returns
| Name | Type | Description |
|---|---|---|
| feeValue | uint8 | feeValue The encoded fee value for the pool (0 if not set) |
Write Functions
Triggers fee updates for multiple pairs of tokens. Permissionless.
Parameters
| Name | Type | Description |
|---|---|---|
| pairs | tuple[] | The pairs of two tokens. There may be multiple pools initialized from the same pair. |
Triggers fee updates for multiple pools directly. Permissionless.
Parameters
| Name | Type | Description |
|---|---|---|
| pools | address[] | The pool addresses to update the fees for. |
Clears the fee tier default, falling back to global default
Parameters
| Name | Type | Description |
|---|---|---|
| feeTier | uint24 | The fee tier to clear |
Clears the pool override, falling back to tier/global defaults
Parameters
| Name | Type | Description |
|---|---|---|
| pool | address | The pool address to clear |
Collects protocol fees from the specified pools to the designated `TOKEN_JAR`
Parameters
| Name | Type | Description |
|---|---|---|
| collectParams | tuple[] | Array of collection parameters for each pool. |
Returns
| Name | Type | Description |
|---|---|---|
| amountsCollected | tuple[] | amountsCollected Array of collected amounts for each pool. |
Enables a fee amount with the given tickSpacing
Parameters
| Name | Type | Description |
|---|---|---|
| fee | uint24 | The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6) |
| tickSpacing | int24 | The spacing between ticks to be enforced for all pools created with the given fee amount |
Sets the global default fee value
Parameters
| Name | Type | Description |
|---|---|---|
| feeValue | uint8 | The fee value (0 or in range [4,10] for each 4-bit component) |
Legacy function for backwards compatibility
Parameters
| Name | Type | Description |
|---|---|---|
| feeTier | uint24 | |
| defaultFeeValue | uint8 |
Transfer ownership of the Uniswap V3 Factory to a new address
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address | The address that will become the new owner of the V3 Factory |
Sets a new fee setter address.
Parameters
| Name | Type | Description |
|---|---|---|
| newFeeSetter | address | The new address authorized to set fees. |
Sets the default fee for a specific fee tier
Parameters
| Name | Type | Description |
|---|---|---|
| feeTier | uint24 | The fee tier to set the default for |
| feeValue | uint8 | The fee value (0 or in range [4,10] for each 4-bit component) |
Sets a pool-specific fee override
Parameters
| Name | Type | Description |
|---|---|---|
| pool | address | The pool address to override |
| feeValue | uint8 | The fee value (0 or in range [4,10] for each 4-bit component) |
Stores a fee tier.
Parameters
| Name | Type | Description |
|---|---|---|
| feeTier | uint24 | The fee tier to store. |
///////////////////////////////////////////////////////////
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address |
Triggers a fee update for a single pool. Permissionless.
Parameters
| Name | Type | Description |
|---|---|---|
| pool | address | The pool address to update the fee for. |
Triggers a fee update for a single pool. Permissionless.
Parameters
| Name | Type | Description |
|---|---|---|
| token0 | address | |
| token1 | address |
Events
Emitted when the global default fee is updated
| Name | Type | Indexed | Description |
|---|---|---|---|
| feeValue | uint8 | The new global default fee value |
Emitted when the fee setter is updated
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldFeeSetter | address | ✓ | The previous fee setter address |
| newFeeSetter | address | ✓ | The new fee setter address |
Emitted when a fee tier default is cleared (deleted from storage)
| Name | Type | Indexed | Description |
|---|---|---|---|
| feeTier | uint24 | ✓ | The fee tier that was cleared |
Emitted when a fee tier default is updated
| Name | Type | Indexed | Description |
|---|---|---|---|
| feeTier | uint24 | ✓ | The fee tier that was updated |
| feeValue | uint8 | The new fee value for the tier |
Emitted when a fee update is triggered for a pool
| Name | Type | Indexed | Description |
|---|---|---|---|
| caller | address | ✓ | The address that triggered the update |
| pool | address | ✓ | The pool that was updated |
| feeValue | uint8 | The new fee value applied |
///////////////////////////////////////////////////////////
| Name | Type | Indexed | Description |
|---|---|---|---|
| user | address | ✓ | |
| newOwner | address | ✓ |
Emitted when a pool override is cleared (deleted from storage)
| Name | Type | Indexed | Description |
|---|---|---|---|
| pool | address | ✓ | The pool that was cleared |
Emitted when a pool override is updated
| Name | Type | Indexed | Description |
|---|---|---|---|
| pool | address | ✓ | The pool that was updated |
| feeValue | uint8 | The new fee value for the pool |