Function: addOptionBarrier(address vaultAddress, OptionBarrier optionBarrier)
Adds a new option barrier to the vault metadata's optionBarriers
array.
Inputs
vaultAddress
Control: Fully controlled.
Constraints: N/A.
Impact: Updates this vault's metadata's
optionBarriers
array.
optionBarrier
Control: Fully controlled.
Constraints: N/A.
Impact: Inserted into the vault metadata's
optionBarriers
array.
Branches and code coverage (including function calls)
Intended branches
Should update the vault's metadata correctly.
Negative behaviour
Should revert if called by a non--trader-admin role.