Assessment reports>Metavest>Threat Model>deployMetavestAndController

Function: deployMetavestAndController(address _authority, address _dao, address _vestingAllocationFactory, address _tokenOptionFactory, address _restrictedTokenFactory)

This function is used to deploy a new metavestController.

Inputs

  • _authority

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the authority.

  • _dao

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the DAO.

  • _vestingAllocationFactory

    • Control: Arbitrary.

    • Constraints: Nonzero address.

    • Impact: Address of the vestingAllocationFactory.

  • _tokenOptionFactory

    • Control: Arbitrary.

    • Constraints: Nonzero address.

    • Impact: Address of the tokenOptionFactory.

  • _restrictedTokenFactory

    • Control: Arbitrary.

    • Constraints: Nonzero address.

    • Impact: Address of the restrictedTokenFactory.

Branches and code coverage

Intended branches

  • Deploy a new metavestController.

Negative behavior

  • Revert if the provided factories are zero address.

Zellic © 2024Back to top ↑