YearnDetectedVaultCache

Documentation for eth_defi.erc_4626.vault_protocol.yearn.offchain_metadata.YearnDetectedVaultCache Python class.

class YearnDetectedVaultCache

Bases: object

Hold the mutable per-process state for the public vault catalogue.

Parameters
  • index – Most recently successful catalogue index.

  • retry_after – Naive UTC time before a failed request may be retried.

Attributes summary

index

Most recently successful catalogue index.

retry_after

Naive UTC time before a failed request may be retried.

Methods summary

__init__([index, retry_after])

index: Optional[eth_defi.erc_4626.vault_protocol.yearn.offchain_metadata.CachedYearnDetectedVaultIndex]

Most recently successful catalogue index.

retry_after: Optional[datetime.datetime]

Naive UTC time before a failed request may be retried.

__init__(index=None, retry_after=None)
Parameters
Return type

None