AccessHub

Linea

0x683035188e3670fda1def2a7aa5742dea28ed5f3

Proxy 实现合约: 0x9c8b50ceeea730efd386b12b252a38836d3da8aa

Solidity v0.8.30+commit.73712a01

🤖
通过你的 AI 查询此合约
引用: 0x683035188e3670fda1def2a7aa5742dea28ed5f3
示例提示词: "Tell me the current state of linea/0x683035188e3670fda1def2a7aa5742dea28ed5f3"
还没有接入 AI?→ mcp.smarts.md
Linea 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
25
写入函数
75
事件
4

读取函数

DEFAULT_ADMIN_ROLE() view

Returns the bytes32 identifier for the contract's default admin role.✨ AI

返回值

名称 类型 描述
bytes32 The bytes32 identifier representing DEFAULT_ADMIN_ROLE; accounts with this role have admin privileges.✨ AI
PROTOCOL_OPERATOR() view

Return the bytes32 role identifier that denotes protocol operators.✨ AI

返回值

名称 类型 描述
bytes32 The bytes32 role identifier used to represent the protocol operator role.✨ AI
SWAP_FEE_SETTER() view

Returns the role identifier used to designate the account allowed to set swap fees.✨ AI

返回值

名称 类型 描述
bytes32 The bytes32 role identifier for the account or entity authorized to set swap fees.✨ AI
autoVault() view

Returns the address of the automatic vault used by this contract.✨ AI

返回值

名称 类型 描述
address Address of the configured automatic vault contract.✨ AI
clGaugeFactory() view

concentrated (v3) gauge factory

返回值

名称 类型 描述
address
feeCollector() view

fee collector contract

返回值

名称 类型 描述
address
feeDistributorFactory() view

the feeDistributor factory address

返回值

名称 类型 描述
address
feeRecipientFactory() view

fee recipient factory

返回值

名称 类型 描述
address
gaugeFactory() view

legacy gauge factory address

返回值

名称 类型 描述
address
getRoleAdmin(role: bytes32) view

Returns the admin role that controls the given role.✨ AI

开发者: Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.

参数

名称 类型 描述
role bytes32 The role identifier to query (bytes32).✨ AI

返回值

名称 类型 描述
bytes32 The admin role identifier (bytes32) that governs the specified role.✨ AI
getRoleMember(role: bytes32, index: uint256) view

Return the account address assigned to a role at the given index.✨ AI

开发者: Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information.

参数

名称 类型 描述
role bytes32 Role identifier as a bytes32 value.✨ AI
index uint256 Zero-based index of the member in the role's member list.✨ AI

返回值

名称 类型 描述
address Address of the role member at the specified index.✨ AI
getRoleMemberCount(role: bytes32) view

Return the number of accounts that currently hold the specified role.✨ AI

开发者: Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role.

参数

名称 类型 描述
role bytes32 Role identifier as a bytes32 value (for example a role constant).✨ AI

返回值

名称 类型 描述
uint256 The count of members assigned to the provided role as a uint256.✨ AI
getRoleMembers(role: bytes32) view

Return the addresses that currently hold the specified role.✨ AI

开发者: Return all accounts that have `role` WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that this function has an unbounded cost, and using it as part of a state-changing function may render the function uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.

参数

名称 类型 描述
role bytes32 Role identifier as a bytes32 value (for example, the keccak256 hash of the role name).✨ AI

返回值

名称 类型 描述
address[] Array of addresses that hold the specified role.✨ AI
hasRole(role: bytes32, account: address) view

Checks whether an account holds the specified role.✨ AI

开发者: Returns `true` if `account` has been granted `role`.

参数

名称 类型 描述
role bytes32 Role identifier as a bytes32 value (e.g., a keccak256 hash or role constant).✨ AI
account address Address of the account to query.✨ AI

返回值

名称 类型 描述
bool True if the account holds the specified role, otherwise false.✨ AI
minter() view

weekly emissions minter

返回值

名称 类型 描述
address
nfpManager() view

peripheral NFPManager contract

返回值

名称 类型 描述
address
poolFactory() view

legacy pair factory

返回值

名称 类型 描述
address
r33() view

R33 contract

返回值

名称 类型 描述
address
ramsesV3PoolFactory() view

CL V3 factory

返回值

名称 类型 描述
address
supportsInterface(interfaceId: bytes4) view

Checks if the contract implements the specified ERC-165 interface identifier.✨ AI

开发者: See {IERC165-supportsInterface}.

参数

名称 类型 描述
interfaceId bytes4 ERC-165 interface identifier (bytes4) to check support for.✨ AI

返回值

名称 类型 描述
bool True if the interface is supported, false otherwise.✨ AI
timelock() view

protocol timelock address

返回值

名称 类型 描述
address
treasury() view

protocol treasury address

返回值

名称 类型 描述
address
voteModule() view

vote module

返回值

名称 类型 描述
address
voter() view

voter

返回值

名称 类型 描述
address
xRam() view

xRam contract

返回值

名称 类型 描述
address

写入函数

addAggregatorAutoVault(_aggregator: address) nonpayable

Add aggregator to AutoVault whitelist

参数

名称 类型 描述
_aggregator address
addAuthorizedClaimerVoter(_claimer: address) nonpayable

add an authorized claimer to the voter

参数

名称 类型 描述
_claimer address The address of the authorized claimer
addOutputTokenAutoVault(_token: address) nonpayable

Add output token to AutoVault whitelist

参数

名称 类型 描述
_token address
addRewardsToGauge(_gauge: address, _reward: address) nonpayable

Add a reward token to a specific CL gauge

参数

名称 类型 描述
_gauge address The gauge address to add the reward to
_reward address The reward token address to add
batchAddRewardsToGauges(_gauges: address[], _rewards: address[]) nonpayable

Add reward tokens to multiple CL gauges

参数

名称 类型 描述
_gauges address[] Array of gauge addresses to add rewards to
_rewards address[] Array of reward token addresses to add
batchRemoveRewardsFromGauges(_gauges: address[], _rewards: address[]) nonpayable

Remove reward tokens from multiple CL gauges

参数

名称 类型 描述
_gauges address[] Array of gauge addresses to remove rewards from
_rewards address[] Array of reward token addresses to remove
clawbackIncentives(_tokenToClawback: address, _poolAddress: address) nonpayable

clawback bribes/incentives from a FeeDistributor for the next period

参数

名称 类型 描述
_tokenToClawback address
_poolAddress address
compoundR33() nonpayable

this function helps us manage atomic r33 self-compounding without manual hassle

createCLGauge(tokenA: address, tokenB: address, tickSpacing: int24) nonpayable

creates a new concentrated liquidity gauge for a CL pool

参数

名称 类型 描述
tokenA address
tokenB address
tickSpacing int24

返回值

名称 类型 描述
address
createFeeDistributorWithRecipient(_feeRecipient: address) nonpayable

Create a new FeeDistributor with specified feeRecipient (emergency governance function)

参数

名称 类型 描述
_feeRecipient address

返回值

名称 类型 描述
address
createLegacyGauge(_pool: address) nonpayable

creates a new gauge for a legacy pool

参数

名称 类型 描述
_pool address

返回值

名称 类型 描述
address
enableTickSpacing(tickSpacing: int24, initialFee: uint24) nonpayable

enables a tickSpacing with the given initialFee amount

开发者: tickSpacings may never be removed once enabled

参数

名称 类型 描述
tickSpacing int24 The spacing between ticks to be enforced for all pools created
initialFee uint24 The initial fee amount, denominated in hundredths of a bip (i.e. 1e-6)
execute(_target: address, _payload: bytes) nonpayable

timelock gated payload execution in case tokens get stuck or other unexpected behaviors

参数

名称 类型 描述
_target address
_payload bytes
governanceWhitelist(_token: address[], _whitelisted: bool[]) nonpayable

whitelists a token for governance, or removes if boolean is set to false

参数

名称 类型 描述
_token address[]
_whitelisted bool[]
grantRole(role: bytes32, account: address) nonpayable

Grants the specified role to the given account.✨ AI

开发者: Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.

参数

名称 类型 描述
role bytes32 Role identifier to grant, provided as a bytes32 value.✨ AI
account address Account address that will receive the role.✨ AI
initialize(params: tuple) nonpayable

initializing function for setting values in the AccessHub

参数

名称 类型 描述
params tuple
initializeVoter(inputs: tuple) nonpayable

function for initializing the voter contract with its dependencies

参数

名称 类型 描述
inputs tuple
killGauge(_pairs: address[]) nonpayable

kills active gauges, removing them from earning further emissions, and claims their fees prior

参数

名称 类型 描述
_pairs address[]
operatorRedeemXRam(_amount: uint256) nonpayable

allows redemption from the operator

参数

名称 类型 描述
_amount uint256
reinit(params: tuple) nonpayable

re-initializing function for updating values in the AccessHub

参数

名称 类型 描述
params tuple
removeAggregatorAutoVault(_aggregator: address) nonpayable

Remove aggregator from AutoVault whitelist

参数

名称 类型 描述
_aggregator address
removeAuthorizedClaimerVoter(_claimer: address) nonpayable

remove an authorized claimer from the voter

参数

名称 类型 描述
_claimer address The address of the authorized claimer to remove
removeFeeDistributorRewards(_pools: address[], _rewards: address[]) nonpayable

function for removing rewards for feeDistributors

参数

名称 类型 描述
_pools address[]
_rewards address[]
removeOutputTokenAutoVault(_token: address, _force: bool) nonpayable

Remove output token from AutoVault whitelist

参数

名称 类型 描述
_token address
_force bool
removeRewardsFromGauge(_gauge: address, _reward: address) nonpayable

Remove a reward token from a specific CL gauge

参数

名称 类型 描述
_gauge address The gauge address to remove the reward from
_reward address The reward token address to remove
renounceRole(role: bytes32, callerConfirmation: address) nonpayable

Renounce a specific role for the calling account by providing a caller confirmation address.✨ AI

开发者: Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `callerConfirmation`. May emit a {RoleRevoked} event.

参数

名称 类型 描述
role bytes32 Role identifier to renounce, encoded as a bytes32 value.✨ AI
callerConfirmation address Address supplied to confirm the caller's intent; typically must equal msg.sender.✨ AI
rescueAutoVault(_token: address, _amount: uint256) nonpayable

Rescue tokens from AutoVault

参数

名称 类型 描述
_token address
_amount uint256
rescueR33Token(_token: address) nonpayable

R33 Functions

参数

名称 类型 描述
_token address
rescueTrappedTokens(_tokens: address[], _amounts: uint256[]) nonpayable

rescues any trapped tokens in xRam

参数

名称 类型 描述
_tokens address[]
_amounts uint256[]
retrieveStuckEmissionsToGovernance(_gauge: address, _period: uint256) nonpayable

allows governance to retrieve emissions in the voter contract that will not be distributed due to the gauge being inactive

开发者: allows per-period retrieval for granularity

参数

名称 类型 描述
_gauge address
_period uint256
reviveGauge(_pairs: address[]) nonpayable

revives inactive/killed gauges

参数

名称 类型 描述
_pairs address[]
revokeRole(role: bytes32, account: address) nonpayable

Revokes a role from an account, removing its permissions immediately.✨ AI

开发者: Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.

参数

名称 类型 描述
role bytes32 Role identifier to revoke (bytes32 hash).✨ AI
account address Address of the account to remove the role from.✨ AI
setAutoVault(_autoVault: address) nonpayable

Set the AutoVault contract address

参数

名称 类型 描述
_autoVault address
setClGaugeFactoryImpl(_newImplementation: address) nonpayable

set the cl gauge factory implementation

参数

名称 类型 描述
_newImplementation address
setCooldownExemption(_candidates: address[], _exempt: bool[]) nonpayable

sets addresses as exempt or removes their exemption

参数

名称 类型 描述
_candidates address[]
_exempt bool[]
setEmissionsMultiplierInMinter(_multiplier: uint256) nonpayable

sets the inflation multiplier

参数

名称 类型 描述
_multiplier uint256 the multiplier
setEmissionsRatioInVoter(_pct: uint256) nonpayable

sets the ratio of xRam/Ramses awarded globally to LPs

参数

名称 类型 描述
_pct uint256
setFeeCollectorAccessHub(_feeCollector: address) nonpayable

xRam Functions

参数

名称 类型 描述
_feeCollector address
setFeeCollectorInClGaugeFactory(_feeCollector: address) nonpayable

Set the fee collector address used by the gauge factory.✨ AI

参数

名称 类型 描述
_feeCollector address Address that will receive protocol fees from the gauge factory.✨ AI
setFeeCollectorInFactoryV3(_newFeeCollector: address) nonpayable

sets the address of the feeCollector in the v3 factory for fee routing

参数

名称 类型 描述
_newFeeCollector address
setFeeRecipientLegacyBatched(_pairs: address[], _feeRecipients: address[]) nonpayable

sets the fee recipient for legacy pairs

参数

名称 类型 描述
_pairs address[]
_feeRecipients address[]
setFeeSplitCL(_pools: address[], _feeProtocol: uint24[]) nonpayable

sets the split of fees between LPs and voters

参数

名称 类型 描述
_pools address[]
_feeProtocol uint24[]
setFeeSplitLegacy(_pools: address[], _feeSplits: uint256[]) nonpayable

sets the split of fees between LPs and voters for legacy pools

参数

名称 类型 描述
_pools address[]
_feeSplits uint256[]
setFeeSplitWhenNoGauge(status: bool) nonpayable

enables or disables if there is a feeSplit when no gauge for legacy pairs

参数

名称 类型 描述
status bool
setFeeToTreasuryInFeeRecipientFactory(_feeToTreasury: uint256) nonpayable

set the fee % to be sent to the treasury

参数

名称 类型 描述
_feeToTreasury uint256 the fee % to be sent to the treasury
setGlobalClFeeProtocol(_feeProtocolGlobal: uint24) nonpayable

sets the feeProtocol (feeSplit) for new CL pools and stored in the factory

参数

名称 类型 描述
_feeProtocolGlobal uint24
setLegacyFeeGlobal(_fee: uint256) nonpayable

set the default swap fee for legacy pools

参数

名称 类型 描述
_fee uint256
setLegacyFeeSplitGlobal(_feeSplit: uint256) nonpayable

set the default feeSplit in the legacy factory

参数

名称 类型 描述
_feeSplit uint256
setNewGovernorInVoter(_newGovernor: address) nonpayable

sets a new governor address in the voter.sol contract

参数

名称 类型 描述
_newGovernor address
setNewTimelock(_timelock: address) nonpayable

timelock gated function to change the timelock

参数

名称 类型 描述
_timelock address
setNewVoteModuleCooldown(_newCooldown: uint256) nonpayable

function to change the cooldown in the voteModule

参数

名称 类型 描述
_newCooldown uint256
setNfpManager(_nfpManager: address) nonpayable

set the nfp manager

参数

名称 类型 描述
_nfpManager address The address of the NfpManager contract
setOperatorAutoVault(_operator: address) nonpayable

Set operator for AutoVault

参数

名称 类型 描述
_operator address
setRewardValidator(_rewardValidator: address) nonpayable

set the reward validator contract

参数

名称 类型 描述
_rewardValidator address The address of the RewardValidator contract
setSkimEnabledLegacy(_pair: address, _status: bool) nonpayable

sets whether a pair can have skim() called or not for rebasing purposes

参数

名称 类型 描述
_pair address
_status bool
setSwapFees(_pools: address[], _swapFees: uint24[]) nonpayable

sets the swap fees for multiple pairs

参数

名称 类型 描述
_pools address[]
_swapFees uint24[]
setTimeThresholdForRewarder(_timeThreshold: uint256) nonpayable

Set the minimum time threshold for rewarder (in seconds)

参数

名称 类型 描述
_timeThreshold uint256 New time threshold in seconds (0 = no threshold)
setTreasuryFeesInFeeCollector(_treasuryFees: uint256) nonpayable

Sets the value of treasury fees to a new amount.

参数

名称 类型 描述
_treasuryFees uint256 The new amount of treasury fees to be set.
setTreasuryInFeeCollector(newTreasury: address) nonpayable

Sets the treasury address to a new value.

参数

名称 类型 描述
newTreasury address The new address to set as the treasury.
setTreasuryInFeeRecipientFactory(_treasury: address) nonpayable

set a new treasury address

参数

名称 类型 描述
_treasury address the new address
setTreasuryInLegacyFactory(_treasury: address) nonpayable

sets the treasury address in the legacy factory

参数

名称 类型 描述
_treasury address
setVoterAddressInFactoryV3(_voter: address) nonpayable

sets the address of the voter in the v3 factory for gauge fee setting

参数

名称 类型 描述
_voter address
setVoterInFeeRecipientFactory(_voter: address) nonpayable

sets the address of the voter in the fee recipient factory for fee recipient creation

参数

名称 类型 描述
_voter address
setVoterInLegacyFactory(_voter: address) nonpayable

sets the voter address in the legacy factory

参数

名称 类型 描述
_voter address
syncClGaugesBatch(startIndex: uint256, endIndex: uint256) nonpayable

Synchronizes clGauge data for a batch of gauges from startIndex to endIndex in the contract's list.✨ AI

参数

名称 类型 描述
startIndex uint256 Index of the first gauge to synchronize (inclusive).✨ AI
endIndex uint256 Index of the last gauge to synchronize (inclusive).✨ AI
toggleAntiSybil() nonpayable

toggle anti-sybil mechanism

toggleXRamGovernance(enable: bool) nonpayable

enables or disables the governance in xRam

参数

名称 类型 描述
enable bool
transferOperatorInR33(_newOperator: address) nonpayable

transfers the r33 operator address

参数

名称 类型 描述
_newOperator address
transferOperatorInXRam(_operator: address) nonpayable

transfers the xRam operator

参数

名称 类型 描述
_operator address
transferToWhitelistInXRam(_who: address[], _whitelisted: bool[]) nonpayable

enables or disables the transfer whitelist in xRam

参数

名称 类型 描述
_who address[]
_whitelisted bool[]
transferWhitelistInXRam(_who: address[], _whitelisted: bool[]) nonpayable

enables or disables the transfer whitelist in xRam

参数

名称 类型 描述
_who address[]
_whitelisted bool[]
unwrapR33LegacyIncentives(_lpToken: address) nonpayable

Unwrap R33 legacy incentives for the specified LP token and deliver resulting assets to the caller.✨ AI

参数

名称 类型 描述
_lpToken address LP token contract address to unwrap legacy R33 incentives from.✨ AI
updateFeeDistributorForGauge(_gauge: address, _newFeeDistributor: address) nonpayable

Update FeeDistributor for a gauge (emergency governance function)

参数

名称 类型 描述
_gauge address
_newFeeDistributor address
updateLastDistroOnGauge(_gauge: address) nonpayable

Update the stored timestamp of the last distribution for a specified gauge.✨ AI

参数

名称 类型 描述
_gauge address the gauge address to update
whitelistAggregatorInR33(_aggregator: address, _status: bool) nonpayable

Sets or clears the whitelist status of an aggregator for the R33 group.✨ AI

参数

名称 类型 描述
_aggregator address Address of the aggregator to update.✨ AI
_status bool True to whitelist the aggregator, false to remove it from the whitelist.✨ AI

事件

Initialized(version: uint64)
名称 类型 已索引 描述
version uint64
RoleAdminChanged(role: bytes32, previousAdminRole: bytes32, newAdminRole: bytes32)
名称 类型 已索引 描述
role bytes32
previousAdminRole bytes32
newAdminRole bytes32
RoleGranted(role: bytes32, account: address, sender: address)
名称 类型 已索引 描述
role bytes32
account address
sender address
RoleRevoked(role: bytes32, account: address, sender: address)
名称 类型 已索引 描述
role bytes32
account address
sender address