/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.
getCurrentSupply
Read current account total supply in base-asset units.
calculateDepositFee
Calculate deposit fees (variable + flat) from the on-chain fee module.
getShareValue
Calculate the value of account shares in a quote asset.
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
| Function | Data Source | Returns |
|---|---|---|
getVaultsByConfig | Cache | Array of accounts matching yield type, chain, and asset |
findVaultByConfig | Cache | Single account for a given asset, yield type, and chain |
getMinimumMint | On-chain (Accountant contract) | Expected shares, exchange rate, decimals |
getDepositCap | On-chain (DCD contract) | Supply cap, fee module address, boolean flags |
getCurrentSupply | On-chain (Account + Accountant) | Total share supply, exchange rate, value in base units |
calculateDepositFee | On-chain (Fee module) | Variable fee, flat fee, total fee, net amount after fees |
getShareValue | On-chain (Accountant contract) | Share balance, value in quote asset, exchange rate |
getVaultAPY | Backend API | APY value and formatted string |
getVaultTVL | Backend API | TVL value and asset denomination |
getWithdrawalFee | On-chain (FeeModule contract) | Fee amount and percentage |
getWithdrawalRequests | Backend API | Paginated withdrawal requests |
getMinimumWithdrawalOrderSize | On-chain (WithdrawQueue contract) | Minimum order size in shares |