YearnDetectedVaultMetadataMixin
Documentation for eth_defi.erc_4626.vault_protocol.yearn.vault.YearnDetectedVaultMetadataMixin Python class.
- class YearnDetectedVaultMetadataMixin
Bases:
objectExpose positive Yearn website metadata for supported Yearn adapters.
The public detected-vault endpoint is not an exhaustive adapter registry. It may confirm a page and provide its description, but its absence must never mark a vault as unofficial.
Attributes summary
Prefer reviewed deployment copy before consulting Yearn website metadata.
Prefer a reviewed summary before extracting one from the website description.
Get positive public Yearn metadata for this vault when it is listed.
Fetch the public Yearn catalogue while preserving outage state.
Methods summary
__init__()get_link([referral])Return a Yearn link unless attribution is explicitly excluded.
- property yearn_detected_vaults: Optional[eth_defi.erc_4626.vault_protocol.yearn.offchain_metadata.YearnDetectedVaultCatalogue]
Fetch the public Yearn catalogue while preserving outage state.
- Returns
Fetched catalogue, or
Nonewhen temporarily unavailable.
- property yearn_detected_metadata: Optional[eth_defi.erc_4626.vault_protocol.yearn.offchain_metadata.YearnDetectedVaultMetadata]
Get positive public Yearn metadata for this vault when it is listed.
- Returns
Public-page metadata, or
Nonewhen the vault is absent or the catalogue is temporarily unavailable.
- property description: Optional[str]
Prefer reviewed deployment copy before consulting Yearn website metadata.
- Returns
Reviewed copy or Yearn-authored description, otherwise
None.
- property short_description: Optional[str]
Prefer a reviewed summary before extracting one from the website description.
- Returns
Reviewed summary or compact Yearn-authored description, otherwise
None.