CachedYearnVaultIndex
Documentation for eth_defi.erc_4626.vault_protocol.yearn.offchain_metadata.CachedYearnVaultIndex Python class.
- class CachedYearnVaultIndex
Bases:
objectOne worker’s refreshable yDaemon metadata index.
The scanner is a persistent process. Keep the time of the last attempted refresh beside the normalised index so the process cache preserves per-vault efficiency without making Yearn’s endorsement decisions stale until the scanner container restarts.
- Parameters
vaults – Lowercase address-keyed normalised yDaemon metadata.
fetched_at – Naive UTC time when this worker last refreshed the index.
Attributes summary
Lowercase address-keyed normalised yDaemon metadata.
Naive UTC time when this worker last refreshed the index.
Methods summary
__init__(vaults, fetched_at)- vaults: dict[str, eth_defi.erc_4626.vault_protocol.yearn.offchain_metadata.YearnVaultMetadata]
Lowercase address-keyed normalised yDaemon metadata.
- fetched_at: datetime.datetime
Naive UTC time when this worker last refreshed the index.
- __init__(vaults, fetched_at)
- Parameters
vaults (dict[str, eth_defi.erc_4626.vault_protocol.yearn.offchain_metadata.YearnVaultMetadata]) –
fetched_at (datetime.datetime) –
- Return type
None