Function: removeVault(address vaultAddress)
Removes a vault from the vaultAddresses
array and deletes its metadata.
Inputs
vaultAddress
Control: Fully controlled.
Constraints: Must exist in the
vaultAddresses
array.Impact: This address is removed from the
vaultAddresses
array.
Branches and code coverage (including function calls)
Intended branches
Should remove the
vaultAddress
from thevaultAddresses
storage array.Should emit the
VaultRemoved
event.
Negative behaviour
Should revert if called by a non--default-admin role.
Should revert if the
vaultAddress
does not exist in thevaultAddresses
storage array.