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

# Refresh AUM

> Keep oracle inputs and the vault's onchain valuation current.

Refresh AUM regularly to keep your vault's valuation current and provide accounting and security checkpoints.

## Keep accounting current

Run refreshes as often as possible, including while the vault is idle. Choose a cadence, automate it with a keeper, and monitor failed runs. Refreshing is permissionless, so the keeper does not need a manager role.

## Run a refresh

Update the oracle and protocol inputs your vault uses, then recalculate AUM. Exponent's cached prices must be updated in the same slot as the calculation, so keep the price updates and AUM refresh together.

Start with a loaded `vault` and build the ordered refresh instructions:

```typescript theme={null}
import {
  coalesceScopeRefreshInstructions,
  getKaminoRefreshIxs,
} from "@exponent-labs/exponent-sdk";

await vault.reload();
const prices = await vault.fetcher.fetchExponentPrices();
const pricePlan = await vault.buildStrategyVaultPriceRefreshPlan(prices);
const refreshAum = vault.ixRefreshAum({
  remainingAccounts: await vault.getResolvedAumRemainingAccountMetas(),
});

const refreshInstructions = coalesceScopeRefreshInstructions([
  ...await getKaminoRefreshIxs(vault),
  ...pricePlan.instructions,
  refreshAum,
]);
```

Load the lookup tables in `pricePlan.lookupTableAddresses` and submit `refreshInstructions` in one transaction when they fit.

The price plan builds supported source refreshes and Exponent price updates. `getKaminoRefreshIxs` adds refreshes for tracked Kamino lending reserves and obligations. Add any other updates required by your [integration](https://docs.exponent.finance/developer-strategy-vaults/supported-integrations.md), and keep the underlying feeds within their oracle provider's freshness requirements. The Scope helper combines duplicate Scope updates and places them first, as Scope requires.

## Refresh before an operation

Place the refresh sequence before the operation that needs current accounting. For policy execution, vault validation requires fresh AUM and marks it stale after the action. Refresh again before the next operation that requires fresh accounting. Valuation-sensitive configuration changes also require a refresh afterward.

If you use [VaultTransactionBuilder](https://docs.exponent.finance/developer-strategy-vaults/vault-transaction-builder.md), it prepares the required AUM refreshes around supported strategy actions. Include those refreshes yourself when assembling transactions manually.

## When one transaction is not enough

If the refreshes and operation exceed one transaction's compute, account, or size limits, split the sequence across a [Jito bundle](https://docs.jito.wtf/lowlatencytxnsend/#bundles-api-v1): oracle and price updates, AUM refresh, then the operation. Jito executes the bundle in order within one slot, keeping the price updates and calculation in the same slot.

Load the price plan's lookup tables into `lookupTableAccounts`, then pack the refresh instructions into unsigned v0 transactions:

```typescript theme={null}
import {
  assertVaultBundleFits,
  buildVaultRefreshTransactions,
} from "@exponent-labs/exponent-sdk";

const { blockhash } = await connection.getLatestBlockhash();
const refreshTransactions = buildVaultRefreshTransactions({
  payer: payer.publicKey,
  blockhash,
  instructions: refreshInstructions,
  lookupTableAccounts,
  computeUnits: 1_400_000,
});

refreshTransactions.forEach((tx) => tx.sign([payer]));
const bundle = [...refreshTransactions, operationTransaction];
assertVaultBundleFits(bundle.length);
```

Set `operationTransaction` to your signed operation, including its required protocol refreshes and a Jito tip. Submit the signed transactions as base64 through Jito's [`sendBundle`](https://docs.jito.wtf/lowlatencytxnsend/#sendbundle). To run only the refresh, use a signed tip transaction in place of `operationTransaction`.

Simulate the full bundle to check compute use; the packer checks transaction size and account count. Each transaction must still fit Solana's limits. Keep any protocol refreshes that must share a transaction with their action together. Jito accepts at most five transactions, including any separate tip transaction.


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