> ## 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 vault data, APY, TVL, fees, and share calculations

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

```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="findVaultByConfig" icon="magnifying-glass" href="/v0.4.2/intro/products/earn/developers/api/display/findVaultByConfig">
    Discover a vault address by asset, yield type, and chain.
  </Card>

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

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

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

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

  <Card title="getWithdrawalRequests" icon="list" href="/v0.4.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.4.2/intro/products/earn/developers/api/display/getMinimumWithdrawalOrderSize">
    Get the minimum withdrawal order size for a vault.
  </Card>
</CardGroup>

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