Skip to main content
The display module provides helper functions for building UI components that show account data. Import them from the /display subpath or the main package.

Import

Functions

getVaultsByConfig

Discover accounts by yield type, chain, and asset. Returns vault.name for use in transaction functions.

findVaultByConfig

Find a single account by asset, yield type, and chain.

getMinimumMint

Calculate expected account shares for a deposit amount.

getDepositCap

Read the deposit supply cap from the on-chain DCD contract.

calculateDepositFee

Calculate deposit fees (variable + flat) from the on-chain fee module.

getVaultAPY

Fetch the latest APY for an account.

getVaultTVL

Fetch total value locked for an account.

getWithdrawalFee

Calculate withdrawal fees from the on-chain FeeModule.

getWithdrawalRequests

Fetch a user’s withdrawal request history.

getMinimumWithdrawalOrderSize

Get the minimum withdrawal order size for an account.

Quick Reference