> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ranger.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Vault Configuration Updates

> Update vault parameters after creation

After creating a vault, the **admin** can update several configuration parameters such as fees, cap, withdrawal settings, and manager authority.

## What Can Be Updated

| Parameter | Updatable | Updated By |
| - | - | - |
| Max cap | Yes | Admin |
| Locked profit degradation duration | Yes | Admin |
| Withdrawal waiting period | Yes | Admin |
| Performance fees | Yes | Admin |
| Management fees | Yes | Admin |
| Issuance fee | Yes | Admin |
| Redemption fee | Yes | Admin |
| Manager | Yes | Admin |
| Vault name | No | — |
| Vault description | No | — |
| Asset mint | No | — |

## Update Via UI

The simplest path is the Ranger manage page:

```text theme={null}
https://vaults.ranger.finance/manage/<VAULT_PUBKEY>
```

## Update Via SDK

The v2 SDK uses `getUpdateVaultConfigInstructionAsync`, one field at a time.

```typescript theme={null}
import fs from "fs";
import { createKeyPairSignerFromBytes } from "@solana/kit";
import {
  getUpdateVaultConfigInstructionAsync,
  findVaultLpMintPda,
  VaultConfigField,
} from "@voltr/vault-sdk";

const adminSigner = await createKeyPairSignerFromBytes(
  Uint8Array.from(JSON.parse(fs.readFileSync("/path/to/admin.json", "utf-8")))
);
const vault = "YOUR_VAULT_ADDRESS" as const;
```

### Update A `u64` Field

```typescript theme={null}
const data = new Uint8Array(Buffer.alloc(8));
Buffer.from(data).writeBigUInt64LE(18_446_744_073_709_551_615n, 0);

const updateIx = await getUpdateVaultConfigInstructionAsync({
  admin: adminSigner,
  vault,
  field: VaultConfigField.MaxCap,
  data,
});
```

### Update A Fee Field

```typescript theme={null}
const feeData = new Uint8Array(Buffer.alloc(2));
Buffer.from(feeData).writeUInt16LE(1_500, 0);

const updateIx = await getUpdateVaultConfigInstructionAsync({
  admin: adminSigner,
  vault,
  field: VaultConfigField.ManagerPerformanceFee,
  data: feeData,
});
```

### Management Fee Special Case

For `ManagerManagementFee` and `AdminManagementFee`, append the vault LP mint account to the final instruction accounts:

```typescript theme={null}
const [vaultLpMint] = await findVaultLpMintPda({ vault });
```

The maintained `admin-update-vault-config.ts` scripts show the exact extra-account pattern used in production.

### Update Manager

Manager and pending-admin changes use a 32-byte encoded address as the payload.

## Serialization Reference

| Field Type | Encoding |
| - | - |
| `u64` | 8 bytes, little-endian |
| `u16` | 2 bytes, little-endian |
| address | 32-byte encoded address |

> [!WARNING]
>
> Be careful when changing manager authority. Once moved, the old manager key can no longer operate the vault.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.