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

Import

import {
  getMinimumMint,
  getVaultAPY,
  getVaultTVL,
  getWithdrawalFee,
  getWithdrawalRequests,
  getMinimumWithdrawalOrderSize,
} from "@paxoslabs/amplify-sdk";

// Or from the display subpath for tree-shaking
import { getVaultAPY } from "@paxoslabs/amplify-sdk/display";

Functions

Quick Reference

FunctionData SourceReturns
findVaultByConfigCacheVault configuration for a given asset, yield type, and chain
getMinimumMintOn-chain (Accountant contract)Expected shares, exchange rate, decimals
getVaultAPYBackend APIAPY value and formatted string
getVaultTVLBackend APITVL value and asset denomination
getWithdrawalFeeOn-chain (FeeModule contract)Fee amount and percentage
getWithdrawalRequestsBackend APIPaginated withdrawal requests
getMinimumWithdrawalOrderSizeOn-chain (WithdrawQueue contract)Minimum order size in shares