Administrable
Alluvial Finance Inc.
Administrable
This contract handles the administration of the contracts
Methods
acceptAdmin
Accept the transfer of ownership
Only callable by the pending admin. Resets the pending admin if succesful.
getAdmin
Retrieves the current admin address
Returns
_0
address
The admin address
getPendingAdmin
Retrieve the current pending admin address
Returns
_0
address
The pending admin address
proposeAdmin
Proposes a new address as admin
This security prevents setting an invalid address as an admin. The pendingadmin has to claim its ownership of the contract, and prove that the newaddress is able to perform regular transactions.
Parameters
_newAdmin
address
New admin address
Events
SetAdmin
The admin address changed
Parameters
admin indexed
address
New admin address
SetPendingAdmin
The pending admin address changed
Parameters
pendingAdmin indexed
address
New pending admin address
Errors
InvalidZeroAddress
The address is zero
Unauthorized
The operator is unauthorized for the caller
Parameters
caller
address
Address performing the call
Last updated