Skip to main content

getVault

Description:

Returns the master data of the vault

Arguments:

NameTypeRequiredDescription
vaultAddressstringYesThe address of the vault

Returns:

type Output = {
apy: number
baseApy: number
version: number
isErc20: boolean
capacity: string
createdAt: number
feePercent: number
isPrivate: boolean
isGenesis: boolean
vaultAdmin: string
canHarvest: boolean
totalAssets: string
performance: number
isMetaVault: boolean
feeRecipient: string
vaultAddress: string
mevRecipient: string
queuedShares: string
exitingAssets: string
whitelistCount: number
lastFeePercent: number
blocklistCount: number
exitingTickets: string
imageUrl: string | null
isSmoothingPool: boolean
tokenName: string | null
whitelistManager: string
whitelistManager: string
blocklistManager: string
ejectingSubVault: string
subVaultsRegistry: string
depositDataManager: string
pendingMetaSubVault: string
tokenSymbol: string | null
displayName: string | null
description: string | null
lastFeeUpdateTimestamp: string
osTokenConfig: {
ltvPercent: string
liqThresholdPercent: string
}
}
NameDescription
versionVault version
apyCurrent vault apy
baseApyThe vault average weekly base APY (without extra incentives)
isErc20Does the vault have its own ERC20 token
capacityMaximum TVL of Vault
createdAtDate of Creation
feePercentCommission rate
isPrivateWhether the vault is private
isGenesisIs a stakewise vault
isMetaVaultIndicates whether the Vault is a meta vault and has sub vaults
queuedSharesThe total number of queued shares
isBlocklistWhether the vault has blocklist
vaultAdminVault administrator address
totalAssetsTVL of Vault
feeRecipientVault fee address
whitelistManagerWhitelist manager
vaultAddressAddress of vault
mevRecipientValidator fee recipient
whitelistCountNumber of addresses in the whitelist
blocklistCountNumber of addresses in the blocklist
imageUrlLink for vault logo
blocklistManagerBlocklist manager
depositDataManagerKeys manager address
isSmoothingPoolSmoothing poll or Vault escrow
tokenNameERC20 token name
tokenSymbolERC20 token symbol
displayNameName of vault
pendingMetaSubVaultThe address of the meta vault that is pending to join as a sub vault
ejectingSubVaultThe address of the sub vault currently being ejected (for meta vaults)
canHarvestDefines whether the vault can harvest new rewards
allocatorMaxBoostApyThe average max boost APY earned in this vault by the allocator
descriptionDescription of vault
whitelistList of authorized users for deposits
blocklistList of blocked users for deposits
performanceVault performance indicator (percent)
lastFeeUpdateTimestampThe timestamp of the last fee update
lastFeePercentThe vault last fee percent
exitingAssetsThe total number of assets that are exiting (in V2 vaults)
exitingTicketsThe total number of tickets that are exiting (in V2 vaults)
subVaultsRegistryThe address of the SubVaultsRegistry contract (for meta vaults v4+ on Gnosis, v6+ on mainnet/hoodi)
osTokenConfigcontains the ltvPercent, which is the percentage used to calculate how much a user can mint in OsToken shares, and thresholdPercent, which is the liquidation threshold percentage used to calculate the health factor for the OsToken position

Example:

await sdk.vault.getVault({ vaultAddress: '0x...' })

test