> ## Documentation Index
> Fetch the complete documentation index at: https://developers.paxoslabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Display Helpers

> UI helper functions for displaying account data, APY, TVL, fees, and share calculations

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

```ts theme={null}
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

<CardGroup cols={2}>
  <Card title="getVaultsByConfig" icon="magnifying-glass" href="/v0.5.2/intro/products/earn/developers/api/getVaultsByConfig">
    Discover accounts by yield type, chain, and asset. Returns `vault.name` for use in transaction functions.
  </Card>

  <Card title="findVaultByConfig" icon="crosshairs" href="/v0.5.2/intro/products/earn/developers/api/display/findVaultByConfig">
    Find a single account by asset, yield type, and chain.
  </Card>

  <Card title="getMinimumMint" icon="calculator" href="/v0.5.2/intro/products/earn/developers/api/display/getMinimumMint">
    Calculate expected account shares for a deposit amount.
  </Card>

  <Card title="getVaultAPY" icon="chart-line" href="/v0.5.2/intro/products/earn/developers/api/display/getVaultAPY">
    Fetch the latest APY for an account.
  </Card>

  <Card title="getVaultTVL" icon="vault" href="/v0.5.2/intro/products/earn/developers/api/display/getVaultTVL">
    Fetch total value locked for an account.
  </Card>

  <Card title="getWithdrawalFee" icon="receipt" href="/v0.5.2/intro/products/earn/developers/api/display/getWithdrawalFee">
    Calculate withdrawal fees from the on-chain FeeModule.
  </Card>

  <Card title="getWithdrawalRequests" icon="list" href="/v0.5.2/intro/products/earn/developers/api/display/getWithdrawalRequests">
    Fetch a user's withdrawal request history.
  </Card>

  <Card title="getMinimumWithdrawalOrderSize" icon="arrow-down-to-line" href="/v0.5.2/intro/products/earn/developers/api/display/getMinimumWithdrawalOrderSize">
    Get the minimum withdrawal order size for an account.
  </Card>
</CardGroup>

## 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                |
| `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                            |
