Vault Reads
Vault State
const state = await client.getVaultState(vaultAddress)Field
Type
Description
Preview Functions
// How many shares will I get for 1 ETH?
const shares = await client.previewDeposit(vault, parseEther('1'))
// How many assets will I get for 100 shares?
const assets = await client.previewRedeem(vault, 100n)
// Conversion helpers
const assetsFromShares = await client.convertToAssets(vault, shares)
const sharesFromAssets = await client.convertToShares(vault, parseEther('1'))