Assessment reports>Metavest>Threat Model>addMetaVestToSet

Function: addMetaVestToSet(string _name, address _metaVest)

This function is used to add a metavest to the set.

Inputs

  • _name

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Name of the set.

  • _metaVest

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the metavest contract.

Branches and code coverage

Intended branches

  • Update the sets mapping with the name and _metaVest.

Negative behavior

  • Revert if the caller is not the authority.

  • Revert if the name does not exist in the setNames array.

  • Revert if the _metaVest is already in the sets mappping.

Zellic © 2024Back to top ↑