create_vault_instance

Documentation for eth_defi.erc_4626.classification.create_vault_instance function.

create_vault_instance(web3, address, features=None, token_cache=None)[source]

Create a new vault instance class based on the detected features.

  • Get a a protocol-specific Python instance that can e.g. read the fees of the vault (not standardised).

Parameters
Returns

None if the vault creation is not supported

Return type

eth_defi.vault.base.VaultBase | None