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
initializermodifier.