Admin functions for the RootChainFactory or RootChainGauges must be invoked through the RootChainGaugeFactoryProxy, necessitating a successful DAO vote.
Additionally, there is a contract manager who can call functions like set_bridger, set_implementation, and set_call_proxy.
The manager CANNOT kill gauges or alter the admins of this contract!
For more details on what the admin functions do, please refer to the RootChainGaugeFactory documentation.
This function is only callable by the future_ownership_admin.
Function to accept the ownership and emergency admin changes.
Emits: ApplyAdmins
Source code
eventApplyAdmins:ownership_admin:indexed(address)emergency_admin:indexed(address)ownership_admin:public(address)emergency_admin:public(address)@externaldefaccept_set_admins():""" @notice Apply the effects of `commit_set_admins` @dev Only callable by the new owner admin """assertmsg.sender==self.future_ownership_admin,"Access denied"e_admin:address=self.future_emergency_adminself.ownership_admin=msg.senderself.emergency_admin=e_adminlogApplyAdmins(msg.sender,e_admin)
This function is only callable by either the ownership_admin, emergency_admin or manager.
Function to accept the ownership and emergency admin changes.
Emits: ApplyAdmins
Input
Type
Description
_new_manager
address
New Manager Address
Source code
eventSetManager:_manager:indexed(address)manager:public(address)@externaldefset_manager(_new_manager:address):""" @notice Set the manager account which is not capable of killing gauges. @param _new_manager The new manager account """assertmsg.senderin[self.ownership_admin,self.emergency_admin,self.manager]self.manager=_new_managerlogSetManager(_new_manager)