Make setZrxProxy callable by authorized address rather than only owner

This commit is contained in:
Amir Bandeali 2019-09-24 17:27:53 -07:00
parent 18a86ef234
commit f30c2c4a23

View File

@ -70,12 +70,12 @@ contract ZrxVault is
}
/// @dev Sets the Zrx proxy.
/// Note that only the contract staker can call this.
/// Note that only an authorized address can call this function.
/// Note that this can only be called when *not* in Catastrophic Failure mode.
/// @param _zrxProxyAddress Address of the 0x Zrx Proxy.
function setZrxProxy(address _zrxProxyAddress)
external
onlyOwner
onlyAuthorized
onlyNotInCatastrophicFailure
{
zrxAssetProxy = IAssetProxy(_zrxProxyAddress);