polymath-core-deprecated
polymath-core-deprecated copied to clipboard
Ticker Reg: prevent an admin from removing himself as admin
Require that msg.sender != the address to remove/add as admin
Any reason for this? I'd have thought it would be fine for an admin to remove themselves as admin. Note that a non-admin can't add themselves as an admin as they wouldn't be able to call the function in the first place.
The problem with that is that if an admin can remove his own address, then there's the chance of locking everyone out of the contract and having no admin.