Assessment reports>Spectral Modelers>Threat Model>initialize

Function: initialize(ICompetition _competitionLogic, IModeler _modelerLogic)

This initializes the CompetitionFactory contract.

Inputs

  • _competitionLogic

    • Control: Fully controlled by the caller.

    • Constraints: Cannot be zero address.

    • Impact: Sets the competitionLogic variable.

  • _modelerLogic

    • Control: Fully controlled by the caller.

    • Constraints: Cannot be zero address.

    • Impact: Sets the modelerLogic variable.

Branches and code coverage

Intended branches

  • Set the owner variable. Currently not performed, and the owner will not be maintained over upgrades.

  • Should call all underlying initializers.

  • Set the competitionLogic variable.

  • Set the modelerLogic variable.

  • Set the version variable.

  • Set the competitionVersion variable.

  • Set the modelerVersion variable.

Negative behavior

  • Should not be callable multiple times. Currently not performed.

Zellic © 2024Back to top ↑