ODCdataobjects
TransferrableOwnable2StepVaultDataObject
DataObject to interact with vault factories, ownable2step vaults and the information of managed vaults
This contract extends VaultDataObject and adds the ability to accept the ownership of Ownable2Step vaults by the DataObject and transfer the ownership of vaults already managed by the DataObject to a different DataPoint
WrongVaultPendingOwner
Error thrown when the pending owner is not the DataObject
WrongVaultOwner
Error thrown when a given address is not the owner of the vault
WrongDataPoint
Error thrown when the DataPoint is bytes32(0)
Parameters
Name | Type | Description |
---|---|---|
dp | DataPoint | The DataPoint identifier |
WrongVaultDataPoint
Error thrown when the DataPoint associated with the vault is not the expected one
Parameters
Name | Type | Description |
---|---|---|
vault | address | The vault address |
currentDP | DataPoint | The current DataPoint |
requestedDP | DataPoint | The requested DataPoint |
VaultNotFound
Error thrown when a Vault doesn't exist
_dispatchWrite
_acceptOwnable2StepVaultOwnership
Functions used to accept the ownership of a 2-step ownable vault
Parameters
Name | Type | Description |
---|---|---|
dp | DataPoint | DataPoint identifier |
vault | address | The vault address NOTE: The vault MUST have the DataPoint as pending owner |
_transferVaultToDataPoint
Functions used to transfer a vault to a new data point
Parameters
Name | Type | Description |
---|---|---|
dp | DataPoint | DataPoint identifier |
vault | address | The vault address |
newDP | DataPoint | The new data point |