create_midas_product_from_registry
Documentation for eth_defi.midas.constants.create_midas_product_from_registry function.
- create_midas_product_from_registry(product)
Create adapter metadata from a registry product row.
The shared vault scanner only needs the mToken, Midas datafeed and deployment metadata to scan historical share price and TVL. Operational issuance/redemption contracts are kept as optional diagnostics because some registry products use specialised vault variants or omit public vault contracts.
- Parameters
product (eth_defi.midas.registry.MidasRegistryProduct) – Registry product promoted by
eth_defi.midas.registry.MidasRegistryProduct.has_required_adapter_data().- Returns
Midas adapter product metadata.
- Return type