This function is only callable by the admin of the contract.
Function to commit a new smart wallet checker contract address to addr. Changes need to be applied via apply_smart_contract_wallet.
Input
Type
Description
addr
address
New SmartWalletChecker Contract
Source code
future_smart_wallet_checker:public(address)@externaldefcommit_smart_wallet_checker(addr:address):""" @notice Set an external contract to check for approved smart contract wallets @param addr Address of Smart contract checker """assertmsg.sender==self.adminself.future_smart_wallet_checker=addr
This function is only callable by the admin of the contract.
Function to commit the ownership of the contract to addr. Changes need to be applied via apply_transfer_ownership
Emits: CommitOwnership
Input
Type
Description
addr
address
address commit the transfer of ownership to
Source code
eventCommitOwnership:admin:addressadmin:public(address)# Can and will be a smart contractfuture_admin:public(address)@externaldefcommit_transfer_ownership(addr:address):""" @notice Transfer ownership of VotingEscrow contract to `addr` @param addr Address to have ownership transferred to """assertmsg.sender==self.admin# dev: admin onlyself.future_admin=addrlogCommitOwnership(addr)
This function is only callable by the admin of the contract.
Function to apply the new ownership.
Emits: ApplyOwnership
Source code
eventApplyOwnership:admin:addressadmin:public(address)# Can and will be a smart contractfuture_admin:public(address)@externaldefapply_transfer_ownership():""" @notice Apply ownership transfer """assertmsg.sender==self.admin# dev: admin only_admin:address=self.future_adminassert_admin!=ZERO_ADDRESS# dev: admin not setself.admin=_adminlogApplyOwnership(_admin)