Assessment reports>Lido Fixed Income>Threat Model>createVault

Function: createVault(uint256 _fixedSideCapacity, uint256 _duration, uint256 _variableSideCapacity)

This function is to create a new LidoVault with initialize value.

Inputs

  • _fixedSideCapacity

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: The value of fixed-side capacity.

  • _duration

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: The value of staking duration.

  • _variableSideCapacity

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: The value of variable-side capacity.

Branches and code coverage

Intended branches

  • Create vault with initialized params.

Negative behavior

  • Reverts if the vaultAddress is zero.

Zellic © 2024Back to top ↑