Open mrcpol opened 2 years ago
msg.sender == address(0) in acceptAdmin() looks redundant. https://github.com/compound-finance/compound-protocol/blob/3affca87636eecd901eb43f81a4813186393905d/contracts/Unitroller.sol#L110
msg.sender == address(0)
acceptAdmin()
Instead, can add newPendingAdmin != address(0) in setPendingAdmin().
newPendingAdmin != address(0)
setPendingAdmin()
https://github.com/compound-finance/compound-protocol/blob/3affca87636eecd901eb43f81a4813186393905d/contracts/Unitroller.sol#L87
LOL, scammers everywhere.
msg.sender == address(0)
inacceptAdmin()
looks redundant. https://github.com/compound-finance/compound-protocol/blob/3affca87636eecd901eb43f81a4813186393905d/contracts/Unitroller.sol#L110Instead, can add
newPendingAdmin != address(0)
insetPendingAdmin()
.https://github.com/compound-finance/compound-protocol/blob/3affca87636eecd901eb43f81a4813186393905d/contracts/Unitroller.sol#L87