Remove authorization of owner in StakingProxy after init is called in constructor

This commit is contained in:
Amir Bandeali
2019-09-29 17:06:03 -07:00
parent 98d1f5405a
commit 8b2b500414
2 changed files with 8 additions and 8 deletions

View File

@@ -42,7 +42,15 @@ contract StakingProxy is
MixinStorage()
{
readOnlyProxy = _readOnlyProxy;
// Deployer address must be authorized in order to call `init`
_addAuthorizedAddress(msg.sender);
// Attach the staking contract and initialize state
_attachStakingContract(_stakingContract);
// Remove the sender as an authorized address
_removeAuthorizedAddressAtIndex(msg.sender, 0);
}
/// @dev Delegates calls to the staking contract, if it is set.

View File

@@ -139,12 +139,4 @@ contract MixinStorage is
/// @dev The WETH balance of this contract that is reserved for pool reward payouts.
uint256 public wethReservedForPoolRewards;
/// @dev Adds owner as an authorized address.
constructor()
public
Authorizable()
{
_addAuthorizedAddress(owner);
}
}