MorphoVault
Documentation for eth_defi.morpho.vault.MorphoVault Python class.
- class MorphoVault[source]
Morpho vault support.
Add specialised reader with fees support
Attributes summary
address
Get the vault smart contract address.
chain_id
Chain this vault is on
denomination_token
Get the token which denominates the vault valuation
info
Get info dictionary related to this vault deployment.
name
Vault name.
share_token
ERC-20 that presents vault shares.
symbol
Vault share token symbol
underlying_token
Alias for
denomination_token()
vault_address
vault_contract
Get vault deployment.
Methods summary
__init__
(web3, spec[, token_cache, features])- param web3
fetch_denomination_token
()Read denomination token from onchain.
fetch_denomination_token_address
()Get the address for the denomination token.
fetch_info
()Use
info()
property for cached access.fetch_nav
([block_identifier])Fetch the most recent onchain NAV value.
fetch_portfolio
(universe[, block_identifier])Read the current token balances of a vault.
fetch_share_price
(block_identifier)Get the current share price.
fetch_share_token
()Get share token of this vault.
fetch_total_assets
(block_identifier)What is the total NAV of the vault.
fetch_total_supply
(block_identifier)What is the current outstanding shares.
fetch_vault_info
()Get all information we can extract from the vault smart contracts.
get_flow_manager
()Get flow manager to read individial events.
Get share price reader to fetch historical returns.
get_management_fee
(block_identifier)Morpho vaults have no management fee
get_performance_fee
(block_identifier)Get Morpho fee
has_block_range_event_support
()Does this vault support block range-based event queries for deposits and redemptions.
has_deposit_distribution_to_all_positions
()Deposits go automatically to all open positions.
- get_historical_reader()[source]
Get share price reader to fetch historical returns.
- Returns
None if unsupported
- Return type