Function: initialize(address[] _depositTokens, address _distributor)
Initializes the contract.
Inputs
_depositTokensControl: Fully controlled by the owner.
Constraints: None.
Impact: Whitelists specified tokens for staking.
_distributorControl: Fully controlled by the owner.
Constraints: None.
Impact: Sets the RewardDistributor contract address.
Branches and code coverage (including function calls)
Intended branches
Sets the
isInitializedflag totrue.Sets the
isDepositTokenflag totruefor each_depositToken.Sets the
distributoraddress to_distributor.
Negative behavior
Should not be callable by anyone other than the owner.
Should not be callable if the contract is already initialized.