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
Return the Yearn website description when it is safely exportable.
Return the first bounded sentence of the Yearn 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]
Return the Yearn website description when it is safely exportable.
- Returns
Yearn-authored description, or
Nonewhen unavailable or unusable.
- property short_description: Optional[str]
Return the first bounded sentence of the Yearn website description.
- Returns
Compact Yearn-authored description, or
Nonewhen unavailable.