fetch_mellow_api_vaults

Documentation for eth_defi.mellow.offchain_metadata.fetch_mellow_api_vaults function.

fetch_mellow_api_vaults(cache_path=PosixPath('/home/runner/.tradingstrategy/cache/mellow'), api_base_url='https://points.mellow.finance', now_=None, max_cache_duration=datetime.timedelta(days=2))

Fetch and cache public Mellow API vault data.

The public API is used only as an enrichment layer. Hypersync factory events remain the source of truth for newly-created Core Vault leads, and on-chain share price/supply reads remain the source of truth for denomination-token TVL.

Parameters
Returns

Mapping (chain_id, lower-case vault address) -> metadata.

Return type

dict[tuple[int, str], eth_defi.mellow.offchain_metadata.MellowApiVaultMetadata]