Function: setAllowedSymbol(byte[32] _symbolHash, bool _allowed)
This allows the owner of the contract to add the allowed symbol and also remove it from allowedSymbolSet.
Inputs
_symbolHashControl: Full control by owner.
Constraints: N/A.
Impact: The
executeProcessValidatedFuturesfunction will revert if using symbols is not allowed.
_allowedControl: Full control by owner.
Constraints: N/A.
Impact: If
_allowedis true, the_symbolHashwill be added; if_allowedis false, the_symbolHashwill be removed.
Branches and code coverage
Intended branches
New hash was added successfully if
_allowedis true.New hash was removed successfully if
_allowedis false.
Negative behavior
Zero hash.
The same hash already added if
_allowedis true.allowedSymbolSetdoes not contain the hash if_allowedis false.Caller is not an owner.