Skip to main content

totalAssets()

Returns the total underlying assets managed by the vault.

Signature

totalAssets(): Promise<bigint>

Parameters

  • None

Returns

  • bigint: total underlying managed by the vault.

Example

const details = await vault.getVaultDetails();
const total = await vault.totalAssets();

// Option 1: SDK helper (caches decimals internally)
console.log(
"Total assets:",
await vault.toUnderlyingDecimals(total),
details.underlying.symbol
);

// Option 2: ethers.js formatting
console.log(
"Total assets:",
ethers.formatUnits(total, details.underlying.decimals),
details.underlying.symbol
);

Response Example

"158974398534987534985349"