# Vault Ownership Changes

## Transfer via Smart Contract

To transfer ownership of a Fusion vault, you need to use a two-step process involving `transferOwnership()` and `acceptOwnership()` functions.

### Ownership Transfer Process

1. **Current owner initiates transfer**: Call `transferOwnership(newOwnerAddress)` on the vault contract
2. **New owner accepts**: Call `acceptOwnership()` to complete the transfer

This follows OpenZeppelin's Ownable two-step ownership transfer pattern for security.

### Example Implementation

```solidity
// Step 1: Current owner initiates transfer
vm.prank(currentOwner);
vault.transferOwnership(newOwner);

// Step 2: New owner accepts ownership
vm.prank(newOwner);
vault.acceptOwnership();
```

### Notes

* The ownership transfer is not immediate - it requires both steps to complete
* After successful transfer, the new owner gains all ownership privileges like fee configuration
* The old owner loses all ownership privileges after the transfer is complete

This two-step process prevents accidental ownership transfers and ensures the new owner explicitly accepts the responsibility.

## Transfer via Fusion Web App

This feature is currently under development.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ipor.io/build-on-fusion/atomists/vault-configuration-step-by-step/vault-ownership-changes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
