make_vault_display_flags

Documentation for eth_defi.research.vault_metrics.make_vault_display_flags function.

make_vault_display_flags(red_flags, yellow_flags, source)

Build generic vault warning display entries for JSON export.

Parameters
  • red_flags (list[str]) – Warning type strings with red severity.

  • yellow_flags (list[str]) – Warning type strings with yellow severity.

  • source (str) – Protocol or data-source slug that produced the warnings.

Returns

JSON-safe warning entries suitable for user interfaces.

Return type

list[dict[str, str]]