VaultDiscoveryBase

Documentation for eth_defi.erc_4626.discovery_base.VaultDiscoveryBase Python class.

class VaultDiscoveryBase

Bases: abc.ABC

Methods summary

__init__(max_workers)

fetch_leads(start_block, end_block[, ...])

scan_vaults(start_block, end_block[, ...])

Scan vaults.

seed_existing_leads(leads)

Seed existing leads to continue the scan where we were left last time.

__init__(max_workers)
Parameters

max_workers (int) –

seed_existing_leads(leads)

Seed existing leads to continue the scan where we were left last time.

Parameters

leads (dict[eth_typing.evm.HexAddress, eth_defi.erc_4626.discovery_base.PotentialVaultMatch]) –

scan_vaults(start_block, end_block, display_progress=True)

Scan vaults.

  • Detect vault leads by events using scan_potential_vaults()

  • Then perform multicall probing for each vault smart contract to detect protocol

Parameters
  • start_block (int) –

  • end_block (int) –

Return type

eth_defi.erc_4626.discovery_base.LeadScanReport