Function: deployModeler(address _competitionContract, IERC20 _validatorToken, uint256 _validatorStakeAmount, uint256 _maxValidators)
This should deploy a new Modeler contract.
Inputs
_competitionContractControl: Fully controlled by the caller.
Constraints: Cannot be zero address.
Impact: Sets the
competitionContractvariable of the Modeler contract.
_validatorTokenControl: Fully controlled by the caller.
Constraints: Cannot be zero address.
Impact: Sets the
validatorTokenvariable of the Modeler contract.
_validatorStakeAmountControl: Fully controlled by the caller.
Constraints: Cannot be zero.
Impact: Sets the
validatorStakeAmountvariable of the Modeler contract.
_maxValidatorsControl: Fully controlled by the caller.
Constraints: Cannot be zero.
Impact: Sets the
maxValidatorsvariable of the Modeler contract.
Branches and code coverage
Intended branches
Assure that the
initializefunction is called on the Modeler contract. Currently not performed.Append the new Modeler contract to the
allModelersarray.Deploy the new Modeler contract.
Negative behavior
_competitionContractcannot be zero address._validatorTokencannot be zero address._maxValidatorscannot be zero.Caller is the owner.