Function: initialize(InitializationParams params)
This function is to initialize new LidoVault.
Inputs
paramsControl: Arbitrary.
Constraints: The values in params is not zero.
Impact: The values required to initialize.
Branches and code coverage
Intended branches
Initialize if the params are not zero.
Negative behavior
Reverts if the
params.protocolFeeReceiveraddress is zero.Reverts if the
params.earlyExitFeeBpsis zero.Reverts if the
params.vaultIdis zero.Reverts if the
params.durationis zero.Reverts if the
params.fixedSideCapacityis zero.Reverts if the
params.variableSideCapacityis zero.Reverts if the
fixedSideCapacity.mulDiv(minimumFixedDepositBps, 10_000)is smaller thanminimumDepositAmount.Reverts if the
fixedSideCapacityis not zero.
Function call analysis
Math.mulDiv(params.fixedSideCapacity, this.minimumFixedDepositBps, 10000)What is controllable?
fixedSideCapacity.If the return value is controllable, how is it used and how can it go wrong? None.
What happens if it reverts, reenters or does other unusual control flow? N/A.