V3OpenFeeAdapter

Ethereum 瀏覽鏈

0xf2371551fe3937db7c750f4dfabe5c2fffdcbf5a

Solidity v0.8.29+commit.ab55807c

🤖
透過你的 AI 查詢此合約
參考: 0xf2371551fe3937db7c750f4dfabe5c2fffdcbf5a
範例提示詞: "Tell me the current state of eth/0xf2371551fe3937db7c750f4dfabe5c2fffdcbf5a"
還沒有接入 AI?→ mcp.smarts.md · 瀏覽鏈

管理與風險

誰能修改規則?

Block #25,494,032

Detected ownable controls from the verified ABI.

Ownable

當前控制

Owner
0x1a9c8182c09f50c8318d769245bea52c32be35bc ↗ Etherscan → smarts

概覽

讀取函式
11
寫入函式
16
事件
8

讀取函式

Block #25,494,032 · just now
FACTORY() view → 0x1f98431c8ad98523631ae4a59f267346ea31f984

Return the factory contract address used by this adapter.✨ AI

回傳值

名稱 類型 描述
address The Uniswap V3 Factory contract.
TOKEN_JAR() view → 0xf38521f130fccf29db1961597bc5d2b60f995f85

Returns the token jar contract address used by this adapter.✨ AI

回傳值

名稱 類型 描述
address The address where collected fees are sent.
ZERO_FEE_SENTINEL() view → 255

Sentinel value stored to represent an explicit zero fee (disabled)

開發者: type(uint8).max because 0 in storage means "not set"

回傳值

名稱 類型 描述
uint8
defaultFee() view → 68

The global default fee applied when no tier or pool override is set

回傳值

名稱 類型 描述
uint8 The encoded global default fee value
defaultFees(feeTier: uint24) view

Legacy getter for backwards compatibility

開發者: Applies waterfall resolution: fee tier default → global default. Returns 0 only when neither a tier default nor a global default is configured.

參數

名稱 類型 描述
feeTier uint24

回傳值

名稱 類型 描述
uint8
feeSetter() view → 0x1a9c8182c09f50c8318d769245bea52c32be35bc

Returns the address authorized to set fees for the contract.✨ AI

回傳值

名稱 類型 描述
address The authorized address to set fees-by-fee-tier
feeTierDefaults(feeTier: uint24) view

Returns the fee tier default for a given fee tier

參數

名稱 類型 描述
feeTier uint24 The fee tier to query

回傳值

名稱 類型 描述
feeValue uint8 feeValue The encoded fee value for the tier (0 if not set)
feeTiers(uint256) view

Returns the fee tier value stored at the given index.✨ AI

參數

名稱 類型 描述
uint256

回傳值

名稱 類型 描述
uint24 The fee tiers enabled on the factory
getFee(pool: address) view

Resolves the fee for a pool using waterfall: pool override → tier default → global

參數

名稱 類型 描述
pool address The pool address to resolve fee for

回傳值

名稱 類型 描述
fee uint8 fee The resolved fee value (decoded)
owner() view → 0x1a9c8182c09f50c8318d769245bea52c32be35bc

Returns the current owner of the factory

開發者: Can be changed by the current owner via setOwner

回傳值

名稱 類型 描述
address The address of the factory owner
poolOverrides(pool: address) view

Returns the pool-specific override for a given pool

參數

名稱 類型 描述
pool address The pool address to query

回傳值

名稱 類型 描述
feeValue uint8 feeValue The encoded fee value for the pool (0 if not set)

寫入函式

batchTriggerFeeUpdate(pairs: tuple[]) nonpayable

Triggers fee updates for multiple pairs of tokens. Permissionless.

參數

名稱 類型 描述
pairs tuple[] The pairs of two tokens. There may be multiple pools initialized from the same pair.
batchTriggerFeeUpdateByPool(pools: address[]) nonpayable

Triggers fee updates for multiple pools directly. Permissionless.

參數

名稱 類型 描述
pools address[] The pool addresses to update the fees for.
clearFeeTierDefault(feeTier: uint24) nonpayable

Clears the fee tier default, falling back to global default

開發者: Only callable by `feeSetter`

參數

名稱 類型 描述
feeTier uint24 The fee tier to clear
clearPoolOverride(pool: address) nonpayable

Clears the pool override, falling back to tier/global defaults

開發者: Only callable by `feeSetter`

參數

名稱 類型 描述
pool address The pool address to clear
collect(collectParams: tuple[]) nonpayable

Collects protocol fees from the specified pools to the designated `TOKEN_JAR`

參數

名稱 類型 描述
collectParams tuple[] Array of collection parameters for each pool.

回傳值

名稱 類型 描述
amountsCollected tuple[] amountsCollected Array of collected amounts for each pool.
enableFeeAmount(fee: uint24, tickSpacing: int24) nonpayable

Enables a fee amount with the given tickSpacing

開發者: Fee amounts may never be removed once enabled

參數

名稱 類型 描述
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
setDefaultFee(feeValue: uint8) nonpayable

Sets the global default fee value

開發者: Only callable by `feeSetter`. Used as fallback when no tier/pool override exists.

參數

名稱 類型 描述
feeValue uint8 The fee value (0 or in range [4,10] for each 4-bit component)
setDefaultFeeByFeeTier(feeTier: uint24, defaultFeeValue: uint8) nonpayable

Legacy function for backwards compatibility

開發者: Renamed to setFeeTierDefault; this function is kept for existing integrations

參數

名稱 類型 描述
feeTier uint24
defaultFeeValue uint8
setFactoryOwner(newOwner: address) nonpayable

Transfer ownership of the Uniswap V3 Factory to a new address

開發者: Only callable by the owner of this contract. This is a critical operation as it transfers control of the V3 Factory

參數

名稱 類型 描述
newOwner address The address that will become the new owner of the V3 Factory
setFeeSetter(newFeeSetter: address) nonpayable

Sets a new fee setter address.

開發者: Only callable by `owner`

參數

名稱 類型 描述
newFeeSetter address The new address authorized to set fees.
setFeeTierDefault(feeTier: uint24, feeValue: uint8) nonpayable

Sets the default fee for a specific fee tier

開發者: Only callable by `feeSetter`

參數

名稱 類型 描述
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)
setPoolOverride(pool: address, feeValue: uint8) nonpayable

Sets a pool-specific fee override

開發者: Only callable by `feeSetter`. Takes precedence over tier and global defaults.

參數

名稱 類型 描述
pool address The pool address to override
feeValue uint8 The fee value (0 or in range [4,10] for each 4-bit component)
storeFeeTier(feeTier: uint24) nonpayable

Stores a fee tier.

開發者: Must be a fee tier that exists on the Uniswap V3 Factory.

參數

名稱 類型 描述
feeTier uint24 The fee tier to store.
transferOwnership(newOwner: address) nonpayable

///////////////////////////////////////////////////////////

參數

名稱 類型 描述
newOwner address
triggerFeeUpdate(pool: address) nonpayable

Triggers a fee update for a single pool. Permissionless.

參數

名稱 類型 描述
pool address The pool address to update the fee for.
triggerFeeUpdate(token0: address, token1: address) nonpayable

Triggers a fee update for a single pool. Permissionless.

參數

名稱 類型 描述
token0 address
token1 address

事件

DefaultFeeUpdated(feeValue: uint8)

Emitted when the global default fee is updated

名稱 類型 已索引 描述
feeValue uint8 The new global default fee value
FeeSetterUpdated(oldFeeSetter: address, newFeeSetter: address)

Emitted when the fee setter is updated

名稱 類型 已索引 描述
oldFeeSetter address The previous fee setter address
newFeeSetter address The new fee setter address
FeeTierDefaultCleared(feeTier: uint24)

Emitted when a fee tier default is cleared (deleted from storage)

名稱 類型 已索引 描述
feeTier uint24 The fee tier that was cleared
FeeTierDefaultUpdated(feeTier: uint24, feeValue: uint8)

Emitted when a fee tier default is updated

名稱 類型 已索引 描述
feeTier uint24 The fee tier that was updated
feeValue uint8 The new fee value for the tier
FeeUpdateTriggered(caller: address, pool: address, feeValue: uint8)

Emitted when a fee update is triggered for a pool

名稱 類型 已索引 描述
caller address The address that triggered the update
pool address The pool that was updated
feeValue uint8 The new fee value applied
OwnershipTransferred(user: address, newOwner: address)

///////////////////////////////////////////////////////////

名稱 類型 已索引 描述
user address
newOwner address
PoolOverrideCleared(pool: address)

Emitted when a pool override is cleared (deleted from storage)

名稱 類型 已索引 描述
pool address The pool that was cleared
PoolOverrideUpdated(pool: address, feeValue: uint8)

Emitted when a pool override is updated

名稱 類型 已索引 描述
pool address The pool that was updated
feeValue uint8 The new fee value for the pool