AccessHub
Linea0x683035188e3670fda1def2a7aa5742dea28ed5f3
Proxy implementation: 0x9c8b50ceeea730efd386b12b252a38836d3da8aa
Solidity v0.8.30+commit.73712a01
Overview
Read Functions
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
concentrated (v3) gauge factory
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
fee collector contract
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
the feeDistributor factory address
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
fee recipient factory
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
legacy gauge factory address
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| index | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address[] |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| account | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
weekly emissions minter
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
peripheral NFPManager contract
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
legacy pair factory
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
R33 contract
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
CL V3 factory
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| interfaceId | bytes4 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
protocol timelock address
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
protocol treasury address
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
vote module
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
voter
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
xRam contract
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Write Functions
Add aggregator to AutoVault whitelist
Parameters
| Name | Type | Description |
|---|---|---|
| _aggregator | address |
add an authorized claimer to the voter
Parameters
| Name | Type | Description |
|---|---|---|
| _claimer | address | The address of the authorized claimer |
Add output token to AutoVault whitelist
Parameters
| Name | Type | Description |
|---|---|---|
| _token | address |
Add a reward token to a specific CL gauge
Parameters
| Name | Type | Description |
|---|---|---|
| _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
Parameters
| Name | Type | Description |
|---|---|---|
| _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
Parameters
| Name | Type | Description |
|---|---|---|
| _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
Parameters
| Name | Type | Description |
|---|---|---|
| _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
Parameters
| Name | Type | Description |
|---|---|---|
| tokenA | address | |
| tokenB | address | |
| tickSpacing | int24 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Create a new FeeDistributor with specified feeRecipient (emergency governance function)
Parameters
| Name | Type | Description |
|---|---|---|
| _feeRecipient | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
creates a new gauge for a legacy pool
Parameters
| Name | Type | Description |
|---|---|---|
| _pool | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
enables a tickSpacing with the given initialFee amount
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| _target | address | |
| _payload | bytes |
whitelists a token for governance, or removes if boolean is set to false
Parameters
| Name | Type | Description |
|---|---|---|
| _token | address[] | |
| _whitelisted | bool[] |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| account | address |
initializing function for setting values in the AccessHub
Parameters
| Name | Type | Description |
|---|---|---|
| params | tuple |
function for initializing the voter contract with its dependencies
Parameters
| Name | Type | Description |
|---|---|---|
| inputs | tuple |
kills active gauges, removing them from earning further emissions, and claims their fees prior
Parameters
| Name | Type | Description |
|---|---|---|
| _pairs | address[] |
allows redemption from the operator
Parameters
| Name | Type | Description |
|---|---|---|
| _amount | uint256 |
re-initializing function for updating values in the AccessHub
Parameters
| Name | Type | Description |
|---|---|---|
| params | tuple |
Remove aggregator from AutoVault whitelist
Parameters
| Name | Type | Description |
|---|---|---|
| _aggregator | address |
remove an authorized claimer from the voter
Parameters
| Name | Type | Description |
|---|---|---|
| _claimer | address | The address of the authorized claimer to remove |
function for removing rewards for feeDistributors
Parameters
| Name | Type | Description |
|---|---|---|
| _pools | address[] | |
| _rewards | address[] |
Remove output token from AutoVault whitelist
Parameters
| Name | Type | Description |
|---|---|---|
| _token | address | |
| _force | bool |
Remove a reward token from a specific CL gauge
Parameters
| Name | Type | Description |
|---|---|---|
| _gauge | address | The gauge address to remove the reward from |
| _reward | address | The reward token address to remove |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| callerConfirmation | address |
Rescue tokens from AutoVault
Parameters
| Name | Type | Description |
|---|---|---|
| _token | address | |
| _amount | uint256 |
R33 Functions
Parameters
| Name | Type | Description |
|---|---|---|
| _token | address |
rescues any trapped tokens in xRam
Parameters
| Name | Type | Description |
|---|---|---|
| _tokens | address[] | |
| _amounts | uint256[] |
allows governance to retrieve emissions in the voter contract that will not be distributed due to the gauge being inactive
Parameters
| Name | Type | Description |
|---|---|---|
| _gauge | address | |
| _period | uint256 |
revives inactive/killed gauges
Parameters
| Name | Type | Description |
|---|---|---|
| _pairs | address[] |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| account | address |
Set the AutoVault contract address
Parameters
| Name | Type | Description |
|---|---|---|
| _autoVault | address |
set the cl gauge factory implementation
Parameters
| Name | Type | Description |
|---|---|---|
| _newImplementation | address |
sets addresses as exempt or removes their exemption
Parameters
| Name | Type | Description |
|---|---|---|
| _candidates | address[] | |
| _exempt | bool[] |
sets the inflation multiplier
Parameters
| Name | Type | Description |
|---|---|---|
| _multiplier | uint256 | the multiplier |
sets the ratio of xRam/Ramses awarded globally to LPs
Parameters
| Name | Type | Description |
|---|---|---|
| _pct | uint256 |
xRam Functions
Parameters
| Name | Type | Description |
|---|---|---|
| _feeCollector | address |
Parameters
| Name | Type | Description |
|---|---|---|
| _feeCollector | address |
sets the address of the feeCollector in the v3 factory for fee routing
Parameters
| Name | Type | Description |
|---|---|---|
| _newFeeCollector | address |
sets the fee recipient for legacy pairs
Parameters
| Name | Type | Description |
|---|---|---|
| _pairs | address[] | |
| _feeRecipients | address[] |
sets the split of fees between LPs and voters
Parameters
| Name | Type | Description |
|---|---|---|
| _pools | address[] | |
| _feeProtocol | uint24[] |
sets the split of fees between LPs and voters for legacy pools
Parameters
| Name | Type | Description |
|---|---|---|
| _pools | address[] | |
| _feeSplits | uint256[] |
enables or disables if there is a feeSplit when no gauge for legacy pairs
Parameters
| Name | Type | Description |
|---|---|---|
| status | bool |
set the fee % to be sent to the treasury
Parameters
| Name | Type | Description |
|---|---|---|
| _feeToTreasury | uint256 | the fee % to be sent to the treasury |
sets the feeProtocol (feeSplit) for new CL pools and stored in the factory
Parameters
| Name | Type | Description |
|---|---|---|
| _feeProtocolGlobal | uint24 |
set the default swap fee for legacy pools
Parameters
| Name | Type | Description |
|---|---|---|
| _fee | uint256 |
set the default feeSplit in the legacy factory
Parameters
| Name | Type | Description |
|---|---|---|
| _feeSplit | uint256 |
sets a new governor address in the voter.sol contract
Parameters
| Name | Type | Description |
|---|---|---|
| _newGovernor | address |
timelock gated function to change the timelock
Parameters
| Name | Type | Description |
|---|---|---|
| _timelock | address |
function to change the cooldown in the voteModule
Parameters
| Name | Type | Description |
|---|---|---|
| _newCooldown | uint256 |
set the nfp manager
Parameters
| Name | Type | Description |
|---|---|---|
| _nfpManager | address | The address of the NfpManager contract |
Set operator for AutoVault
Parameters
| Name | Type | Description |
|---|---|---|
| _operator | address |
set the reward validator contract
Parameters
| Name | Type | Description |
|---|---|---|
| _rewardValidator | address | The address of the RewardValidator contract |
sets whether a pair can have skim() called or not for rebasing purposes
Parameters
| Name | Type | Description |
|---|---|---|
| _pair | address | |
| _status | bool |
sets the swap fees for multiple pairs
Parameters
| Name | Type | Description |
|---|---|---|
| _pools | address[] | |
| _swapFees | uint24[] |
Set the minimum time threshold for rewarder (in seconds)
Parameters
| Name | Type | Description |
|---|---|---|
| _timeThreshold | uint256 | New time threshold in seconds (0 = no threshold) |
Sets the value of treasury fees to a new amount.
Parameters
| Name | Type | Description |
|---|---|---|
| _treasuryFees | uint256 | The new amount of treasury fees to be set. |
Sets the treasury address to a new value.
Parameters
| Name | Type | Description |
|---|---|---|
| newTreasury | address | The new address to set as the treasury. |
set a new treasury address
Parameters
| Name | Type | Description |
|---|---|---|
| _treasury | address | the new address |
sets the treasury address in the legacy factory
Parameters
| Name | Type | Description |
|---|---|---|
| _treasury | address |
sets the address of the voter in the v3 factory for gauge fee setting
Parameters
| Name | Type | Description |
|---|---|---|
| _voter | address |
sets the address of the voter in the fee recipient factory for fee recipient creation
Parameters
| Name | Type | Description |
|---|---|---|
| _voter | address |
sets the voter address in the legacy factory
Parameters
| Name | Type | Description |
|---|---|---|
| _voter | address |
Parameters
| Name | Type | Description |
|---|---|---|
| startIndex | uint256 | |
| endIndex | uint256 |
toggle anti-sybil mechanism
enables or disables the governance in xRam
Parameters
| Name | Type | Description |
|---|---|---|
| enable | bool |
transfers the r33 operator address
Parameters
| Name | Type | Description |
|---|---|---|
| _newOperator | address |
transfers the xRam operator
Parameters
| Name | Type | Description |
|---|---|---|
| _operator | address |
enables or disables the transfer whitelist in xRam
Parameters
| Name | Type | Description |
|---|---|---|
| _who | address[] | |
| _whitelisted | bool[] |
enables or disables the transfer whitelist in xRam
Parameters
| Name | Type | Description |
|---|---|---|
| _who | address[] | |
| _whitelisted | bool[] |
Parameters
| Name | Type | Description |
|---|---|---|
| _lpToken | address |
Update FeeDistributor for a gauge (emergency governance function)
Parameters
| Name | Type | Description |
|---|---|---|
| _gauge | address | |
| _newFeeDistributor | address |
Parameters
| Name | Type | Description |
|---|---|---|
| _gauge | address | the gauge address to update |
Parameters
| Name | Type | Description |
|---|---|---|
| _aggregator | address | |
| _status | bool |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| version | uint64 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| role | bytes32 | ✓ | |
| previousAdminRole | bytes32 | ✓ | |
| newAdminRole | bytes32 | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |