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
features (Optional[set[eth_defi.erc_4626.core.ERC4626Feature]]) –
Previously/manually extracted vault feature flags for the type.
Give empty set for generic ERC-4626 vault class.
web3 (web3.main.Web3) –
address (eth_typing.evm.HexAddress) –
- Returns
None if the vault creation is not supported
- Return type