AccessHub
Linea0x683035188e3670fda1def2a7aa5742dea28ed5f3
Proxy 实现合约: 0x9c8b50ceeea730efd386b12b252a38836d3da8aa
Solidity v0.8.30+commit.73712a01
概览
读取函数
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 |
Return the bytes32 role identifier that denotes protocol operators.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 role identifier used to represent the protocol operator role.✨ AI |
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 |
Returns the address of the automatic vault used by this contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Address of the configured automatic vault contract.✨ AI |
concentrated (v3) gauge factory
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
fee collector contract
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
the feeDistributor factory address
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
fee recipient factory
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
legacy gauge factory address
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
Returns the admin role that controls the given role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | The role identifier to query (bytes32).✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The admin role identifier (bytes32) that governs the specified role.✨ AI |
Return the account address assigned to a role at the given index.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Return the number of accounts that currently hold the specified role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Return the addresses that currently hold the specified role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Checks whether an account holds the specified role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
weekly emissions minter
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
peripheral NFPManager contract
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
legacy pair factory
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
R33 contract
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
CL V3 factory
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
Checks if the contract implements the specified ERC-165 interface identifier.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| interfaceId | bytes4 | ERC-165 interface identifier (bytes4) to check support for.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the interface is supported, false otherwise.✨ AI |
protocol timelock address
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
protocol treasury address
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
vote module
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
voter
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
xRam contract
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
写入函数
Add aggregator to AutoVault whitelist
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _aggregator | address |
add an authorized claimer to the voter
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _claimer | address | The address of the authorized claimer |
Add output token to AutoVault whitelist
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _token | address |
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 |
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 |
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 |
clawback bribes/incentives from a FeeDistributor for the next period
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _tokenToClawback | address | |
| _poolAddress | address |
this function helps us manage atomic r33 self-compounding without manual hassle
creates a new concentrated liquidity gauge for a CL pool
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| tokenA | address | |
| tokenB | address | |
| tickSpacing | int24 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
Create a new FeeDistributor with specified feeRecipient (emergency governance function)
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _feeRecipient | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
creates a new gauge for a legacy pool
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _pool | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
enables a tickSpacing with the given initialFee amount
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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) |
timelock gated payload execution in case tokens get stuck or other unexpected behaviors
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _target | address | |
| _payload | bytes |
whitelists a token for governance, or removes if boolean is set to false
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _token | address[] | |
| _whitelisted | bool[] |
Grants the specified role to the given account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier to grant, provided as a bytes32 value.✨ AI |
| account | address | Account address that will receive the role.✨ AI |
initializing function for setting values in the AccessHub
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| params | tuple |
function for initializing the voter contract with its dependencies
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| inputs | tuple |
kills active gauges, removing them from earning further emissions, and claims their fees prior
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _pairs | address[] |
allows redemption from the operator
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _amount | uint256 |
re-initializing function for updating values in the AccessHub
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| params | tuple |
Remove aggregator from AutoVault whitelist
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _aggregator | address |
remove an authorized claimer from the voter
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _claimer | address | The address of the authorized claimer to remove |
function for removing rewards for feeDistributors
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _pools | address[] | |
| _rewards | address[] |
Remove output token from AutoVault whitelist
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _token | address | |
| _force | bool |
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 |
Renounce a specific role for the calling account by providing a caller confirmation address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Rescue tokens from AutoVault
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _token | address | |
| _amount | uint256 |
R33 Functions
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _token | address |
rescues any trapped tokens in xRam
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _tokens | address[] | |
| _amounts | uint256[] |
allows governance to retrieve emissions in the voter contract that will not be distributed due to the gauge being inactive
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _gauge | address | |
| _period | uint256 |
revives inactive/killed gauges
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _pairs | address[] |
Revokes a role from an account, removing its permissions immediately.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier to revoke (bytes32 hash).✨ AI |
| account | address | Address of the account to remove the role from.✨ AI |
Set the AutoVault contract address
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _autoVault | address |
set the cl gauge factory implementation
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _newImplementation | address |
sets addresses as exempt or removes their exemption
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _candidates | address[] | |
| _exempt | bool[] |
sets the inflation multiplier
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _multiplier | uint256 | the multiplier |
sets the ratio of xRam/Ramses awarded globally to LPs
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _pct | uint256 |
xRam Functions
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _feeCollector | address |
Set the fee collector address used by the gauge factory.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _feeCollector | address | Address that will receive protocol fees from the gauge factory.✨ AI |
sets the address of the feeCollector in the v3 factory for fee routing
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _newFeeCollector | address |
sets the fee recipient for legacy pairs
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _pairs | address[] | |
| _feeRecipients | address[] |
sets the split of fees between LPs and voters
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _pools | address[] | |
| _feeProtocol | uint24[] |
sets the split of fees between LPs and voters for legacy pools
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _pools | address[] | |
| _feeSplits | uint256[] |
enables or disables if there is a feeSplit when no gauge for legacy pairs
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| status | bool |
set the fee % to be sent to the treasury
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _feeToTreasury | uint256 | the fee % to be sent to the treasury |
sets the feeProtocol (feeSplit) for new CL pools and stored in the factory
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _feeProtocolGlobal | uint24 |
set the default swap fee for legacy pools
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _fee | uint256 |
set the default feeSplit in the legacy factory
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _feeSplit | uint256 |
sets a new governor address in the voter.sol contract
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _newGovernor | address |
timelock gated function to change the timelock
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _timelock | address |
function to change the cooldown in the voteModule
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _newCooldown | uint256 |
set the nfp manager
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _nfpManager | address | The address of the NfpManager contract |
Set operator for AutoVault
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _operator | address |
set the reward validator contract
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _rewardValidator | address | The address of the RewardValidator contract |
sets whether a pair can have skim() called or not for rebasing purposes
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _pair | address | |
| _status | bool |
sets the swap fees for multiple pairs
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _pools | address[] | |
| _swapFees | uint24[] |
Set the minimum time threshold for rewarder (in seconds)
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _timeThreshold | uint256 | New time threshold in seconds (0 = no threshold) |
Sets the value of treasury fees to a new amount.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _treasuryFees | uint256 | The new amount of treasury fees to be set. |
Sets the treasury address to a new value.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newTreasury | address | The new address to set as the treasury. |
set a new treasury address
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _treasury | address | the new address |
sets the treasury address in the legacy factory
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _treasury | address |
sets the address of the voter in the v3 factory for gauge fee setting
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _voter | address |
sets the address of the voter in the fee recipient factory for fee recipient creation
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _voter | address |
sets the voter address in the legacy factory
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _voter | address |
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 |
toggle anti-sybil mechanism
enables or disables the governance in xRam
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| enable | bool |
transfers the r33 operator address
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _newOperator | address |
transfers the xRam operator
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _operator | address |
enables or disables the transfer whitelist in xRam
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _who | address[] | |
| _whitelisted | bool[] |
enables or disables the transfer whitelist in xRam
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _who | address[] | |
| _whitelisted | bool[] |
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 |
Update FeeDistributor for a gauge (emergency governance function)
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _gauge | address | |
| _newFeeDistributor | address |
Update the stored timestamp of the last distribution for a specified gauge.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _gauge | address | the gauge address to update |
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 |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint64 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| previousAdminRole | bytes32 | ✓ | |
| newAdminRole | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |