/display subpath or the main package.
Import
Functions
findVaultByConfig
Discover a vault address by asset, yield type, and chain.
getMinimumMint
Calculate expected vault shares for a deposit amount.
getVaultAPY
Fetch the latest APY for a vault.
getVaultTVL
Fetch total value locked for a vault.
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 a vault.
Quick Reference
| Function | Data Source | Returns |
|---|---|---|
findVaultByConfig | Cache | Vault configuration for a given asset, yield type, and chain |
getMinimumMint | On-chain (Accountant contract) | Expected shares, exchange rate, decimals |
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 |