SharedVaults
SharedVaults
Contract for managing shared vaults that can be used by multiple operators
Extends BaseMiddleware to provide access control for vault management functions
Methods
registerSharedVault
function registerSharedVault(
address sharedVault
) public checkAccess
Registers a new shared vault
Parameters
Name | Type | Description |
---|---|---|
sharedVault | address | The address of the vault to register |
pauseSharedVault
function pauseSharedVault(
address sharedVault
) public checkAccess
Pauses a shared vault
Parameters
Name | Type | Description |
---|---|---|
sharedVault | address | The address of the vault to pause |
unpauseSharedVault
function unpauseSharedVault(
address sharedVault
) public checkAccess
Unpauses a shared vault
Parameters
Name | Type | Description |
---|---|---|
sharedVault | address | The address of the vault to unpause |
unregisterSharedVault
function unregisterSharedVault(
address sharedVault
) public checkAccess
Unregisters a shared vault
Parameters
Name | Type | Description |
---|---|---|
sharedVault | address | The address of the vault to unregister |
_beforeRegisterSharedVault
function _beforeRegisterSharedVault(
address sharedVault
) internal virtual
Hook called before registering a shared vault
Parameters
Name | Type | Description |
---|---|---|
sharedVault | address | The vault address |
_beforePauseSharedVault
function _beforePauseSharedVault(
address sharedVault
) internal virtual
Hook called before pausing a shared vault
Parameters
Name | Type | Description |
---|---|---|
sharedVault | address | The vault address |
_beforeUnpauseSharedVault
function _beforeUnpauseSharedVault(
address sharedVault
) internal virtual
Hook called before unpausing a shared vault
Parameters
Name | Type | Description |
---|---|---|
sharedVault | address | The vault address |
_beforeUnregisterSharedVault
function _beforeUnregisterSharedVault(
address sharedVault
) internal virtual
Hook called before unregistering a shared vault
Parameters
Name | Type | Description |
---|---|---|
sharedVault | address | The vault address |