Skip to main content

Getting Lists of Verified Vaults

Perspectives are on-chain contracts that encode rules for verifying and filtering Euler vaults. They are the primary tool for developers, analysts, and integrators who want to obtain lists of safe, curated, or otherwise trusted vaults for use in dashboards, analytics, or integrations.

The Role of governedPerspective

While the Perspectives system is designed to support a wide range of on-chain rule checking and automated curation, in practice, the vast majority of vaults currently displayed in the Euler UI are those that have been manually verified and included in the governedPerspective. This perspective is maintained by the Euler Labs team and acts as the primary source of truth for which vaults are considered safe and production-ready.

Other perspectives exist and can be used for custom or experimental filtering, but have seen little adoption so far. For most users and integrators, the governedPerspective is the main perspective to rely on for vault verification.

How to Use Perspectives to Get Verified Vaults

  1. Get the List of Verified Vaults

    • Use the verifiedArray() function on the governedPerspective contract (or any other perspective contract) to get all vaults that have been verified and approved.
    • Example:
      const verifiedVaults = await governedPerspectiveContract.verifiedArray();
      // Use this list to filter vaults in your queries
  2. Check if a Vault is Verified

    • Use the isVerified(vaultAddress) function to check if a specific vault is included in the governed perspective.
      const isSafe = await governedPerspectiveContract.isVerified(vaultAddress);
  3. Filter Data from Subgraphs or Lenses

    • When querying vaults from the subgraph or lens contracts, filter your results to only include those in the governedPerspective verified list. This ensures you are working with vaults that have been whitelisted either by the Euler Labs team or automatically based on encoded on-chain rules (depending on the perspective type)