Assessment reports>Omni AVS>Threat Model>Function: initialize(address owner_, IOmniPortal omni_, uint64 omniChainId_, address ethStakeInbox_, uint96 minOperatorStake_, uint32 maxOperatorCount_, StrategyParam[] calldata strategyParams_)

Function: initialize(address owner_, IOmniPortal omni_, uint64 omniChainId_, address ethStakeInbox_, uint96 minOperatorStake_, uint32 maxOperatorCount_, StrategyParam[] calldata strategyParams_)

Initializes the OmniAVS contract.

Inputs

  • owner_

    • Validation: None.

    • Impact: The address of the contract owner.

  • omni_

    • Validation: None.

    • Impact: The Omni portal contract.

  • omniChainId_

    • Validation: None.

    • Impact: The Omni chain ID.

  • ethStakeInbox_

    • Validation: None.

    • Impact: The EthStakeInbox contract address.

  • minOperatorStake_

    • Validation: None.

    • Impact: The minimum operator stake.

  • maxOperatorCount_

    • Validation: None.

    • Impact: The maximum operator count.

  • strategyParams_

    • Validation: None.

    • Impact: List of accepted strategies and their multipliers.

Branches and code coverage (including function calls)

Intended branches

  • Set the OmniPortal contract.

  • Set the OmniChainId.

  • Set the XCallGasLimits.

  • Set the EthStakeInbox.

  • Set the MinOperatorStake.

  • Set the MaxOperatorCount.

  • Set the StrategyParams.

  • Enable the allowlist.

  • Transfer ownership to the owner_.

Negative behavior

  • Should not be callable multiple times. Enforced through the initializer modifier.

Zellic © 2025Back to top ↑