Skip to main content
Looks up a vault configuration by asset address, yield type, and chain ID. Use this to discover the vaultAddress needed by getVaultAPY and getVaultTVL.

Import

Usage

Parameters

Return Type

Returns the matching AmplifyVault, or undefined if no vault matches.
The key field is 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.