# Abdicate Gates

Abdicate Morpho Vault V2 gates through the Curator App, Etherscan, or Solidity so users retain access under the vault's chosen permanent gate settings.

Source: https://docs.morpho.org/curate/tutorials-v2/abdicate-gates



This guide explains why and how curators can abdicate the **three critical gates** to help ensure users retain access to their assets, preserving the vault's non-custodial properties.

## Why Abdicate Gates? [#why-abdicate-gates]

Morpho Vault V2 implements four gates that control access to vault operations. Three of these gates are **critical** because they can potentially block users from accessing their assets:

| Gate                    | Risk                                                    | Why It's Critical                                  |
| ----------------------- | ------------------------------------------------------- | -------------------------------------------------- |
| **Receive Shares Gate** | Can prevent users from receiving shares during deposits | Users could deposit assets but not receive shares  |
| **Send Shares Gate**    | Can lock users out of withdrawals and transfers         | Users cannot exit the vault                        |
| **Receive Assets Gate** | Can prevent users from receiving assets on withdrawal   | Users can burn shares but not receive their assets |

The fourth gate (`sendAssetsGate`) is non-critical because it only restricts who can deposit-it cannot block existing users from withdrawing.

### Non-Custodial Guarantee [#non-custodial-guarantee]

By abdicating the three critical gates to `address(0)`, a curator permanently guarantees that:

* No access restrictions can ever be imposed on withdrawals
* Users can always exit the vault and receive their assets
* The vault remains truly non-custodial

This is an **irreversible** action that provides vault users with the strongest possible assurance.

## Prerequisites [#prerequisites]

Before abdicating, ensure:

1. All three critical gates are set to `address(0)` (no gate configured)
2. You are connected with the **Curator** wallet
3. You understand this action is **permanent and irreversible**

## Tutorial: Abdicate Gates on the Curator App V2 [#tutorial-abdicate-gates-on-the-curator-app-v2]

### Head to the Curator App V2 [#head-to-the-curator-app-v2]

[curator.morpho.org](https://curator.morpho.org/vaults)

On your Morpho Vault V2 page, head to the **Timelocks** tab and click on the **Abdicate** button.

<figure>
  <ZoomableImage src="/img/curators/tutorials/gate_abdication_1.png" alt="Gate Abdication - Step 1" width="3396" height="1954" />
</figure>

You can select the gate you want to abdicate and submit the abdication.

<figure>
  <ZoomableImage src="/img/curators/tutorials/gate_abdication_2.png" alt="Gate Abdication - Step 2" width="2190" height="766" />
</figure>

Once the abdication is submitted, it will appear in the **Pending Timelocks**, click there and accept the abdication once the timelock has passed.

<figure>
  <ZoomableImage src="/img/curators/tutorials/gate_abdication_4.png" alt="Gate Abdication - Step 3" width="3390" height="1946" />
</figure>

<div style="{ width: &#x22;50%&#x22;, margin: &#x22;0 auto&#x22; }">
  <ZoomableImage src="/img/curators/tutorials/gate_abdication_5.png" alt="Gate Abdication - Step 4" width="1000" height="1182" />
</div>

You can then check the gate function has been abdicated in the **Gates** table of the Timelocks page.

<figure>
  <ZoomableImage src="/img/curators/tutorials/gate_abdication_6.png" alt="Gate Abdication - Step 5" width="2644" height="568" />
</figure>

## Tutorial: Abdicate Gates via Etherscan [#tutorial-abdicate-gates-via-etherscan]

Abdication follows a **two-step timelocked process**: first submit, wait for the timelock, then execute.

### Step 1: Verify Current Gate Settings [#step-1-verify-current-gate-settings]

1. Go to your vault's contract on Etherscan
2. Navigate to **Read Contract**
3. Check the following functions return `0x0000000000000000000000000000000000000000`:
   * `receiveSharesGate()`
   * `sendSharesGate()`
   * `receiveAssetsGate()`

If any gate is not `address(0)`, you must first set it to zero using the corresponding setter function (also timelocked).

### Step 2: Submit Abdication [#step-2-submit-abdication]

Navigate to **Write Contract** and connect your Curator wallet.

For each gate you want to abdicate, call the `submit` function with the encoded `abdicate` call data:

| Gate to Abdicate    | Data to Submit                                                               |
| ------------------- | ---------------------------------------------------------------------------- |
| Receive Shares Gate | `0xb2e328482cb19f9800000000000000000000000000000000000000000000000000000000` |
| Send Shares Gate    | `0xb2e32848c21ad02800000000000000000000000000000000000000000000000000000000` |
| Receive Assets Gate | `0xb2e3284804dbf0ce00000000000000000000000000000000000000000000000000000000` |

1. Find the `submit` function
2. Enter the data from the table above
3. Click **Write** and confirm the transaction
4. Repeat for each gate

### Step 3: Wait for Timelock [#step-3-wait-for-timelock]

After submitting, you must wait for the vault's timelock period to elapse before executing.

To check the timelock duration, call `timelock(bytes4 selector)` with the `abdicate` selector: `0xb2e32848`.

### Step 4: Execute Abdication [#step-4-execute-abdication]

Once the timelock has passed, execute each abdication:

1. Find the `abdicate` function
2. Enter the gate setter selector:
   * Receive Shares Gate: `0x2cb19f98`
   * Send Shares Gate: `0xc21ad028`
   * Receive Assets Gate: `0x04dbf0ce`
3. Click **Write** and confirm the transaction

### Function Selector Reference [#function-selector-reference]

| Gate Setter Function            | Selector     |
| ------------------------------- | ------------ |
| `setReceiveSharesGate(address)` | `0x2cb19f98` |
| `setSendSharesGate(address)`    | `0xc21ad028` |
| `setReceiveAssetsGate(address)` | `0x04dbf0ce` |
| `setSendAssetsGate(address)`    | `0x871c979c` |

### Step 5: Verify Abdication [#step-5-verify-abdication]

After all transactions confirm, verify the abdication was successful:

1. Go to **Read Contract**
2. Call `abdicated(bytes4 selector)` with each gate setter selector
3. Confirm all three return `true`

## Using Solidity [#using-solidity]

### Step 1: Submit Abdications [#step-1-submit-abdications]

```solidity
import {IVaultV2} from "@morpho-org/vault-v2/interfaces/IVaultV2.sol";

// Submit abdication for all three critical gates
vault.submit(abi.encodeCall(IVaultV2.abdicate, (IVaultV2.setReceiveSharesGate.selector)));
vault.submit(abi.encodeCall(IVaultV2.abdicate, (IVaultV2.setSendSharesGate.selector)));
vault.submit(abi.encodeCall(IVaultV2.abdicate, (IVaultV2.setReceiveAssetsGate.selector)));
```

### Step 2: Execute After Timelock [#step-2-execute-after-timelock]

```solidity
// After timelock has passed, execute each abdication
vault.abdicate(IVaultV2.setReceiveSharesGate.selector);
vault.abdicate(IVaultV2.setSendSharesGate.selector);
vault.abdicate(IVaultV2.setReceiveAssetsGate.selector);
```

<Callout type="warn">
  Abdication is **irreversible**. Once abdicated, the gate setter function can never be called again, permanently locking the gate to its current value (`address(0)`).
</Callout>