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 thename
and_metaVest
.
Negative behavior
Revert if the caller is not the authority.
Revert if the
name
does not exist in thesetNames
array.Revert if the
_metaVest
is already in thesets
mappping.