vaultAddress needed by getVaultAPY and getVaultTVL.
Import
Usage
Parameters
Return Type
Returns the matchingAmplifyVault, or undefined if no vault matches.
vault.boringVaultAddress — pass this as the vaultAddress parameter to getVaultAPY and getVaultTVL.
Example: Vault Discovery → APY Display
Example: React Component
Error Handling
Returns
undefined (not an error) when no vault matches the given parameters. Always check the return value before accessing vault properties.
Related
- getVaultAPY - Fetch vault APY (requires vault address)
- getVaultTVL - Fetch vault TVL (requires vault address)
- fetchSupportedAssets - Discover supported tokens and chains