apply_morpho_not_in_api_check
Documentation for eth_defi.research.vault_metrics.apply_morpho_not_in_api_check function.
- apply_morpho_not_in_api_check(risk, notes, flags)
Blacklist Morpho vaults missing from Morpho API.
Dynamic scan flags are not visible to
get_vault_risk(), because that helper only reads the static manual flag table. This helper handles the Morpho-specific dynamic blacklist flag before metrics export.- Parameters
risk (Optional[eth_defi.vault.risk.VaultTechnicalRisk]) – Current risk classification.
notes (Optional[str]) – Current note, if any. Existing notes have priority.
flags (set[eth_defi.vault.flag.VaultFlag]) – Dynamic flags collected during vault scan.
- Returns
Updated risk, notes, and flags.
- Return type
tuple[eth_defi.vault.risk.VaultTechnicalRisk | None, str | None, set[eth_defi.vault.flag.VaultFlag]]