extend_notes_with_vault_scan_cycle

Documentation for eth_defi.research.vault_metrics.extend_notes_with_vault_scan_cycle function.

extend_notes_with_vault_scan_cycle(notes, vault_poll_frequency)

Append lower scan-cycle context to a vault note.

Frontends use the note field as the short human explanation for unusual vault state. When a vault is intentionally scanned less often, this helper adds that explanation without replacing existing risk or manual notes.

Parameters
  • notes (Optional[str]) – Existing vault note, if any.

  • vault_poll_frequency (Optional[str]) – Latest adaptive scan cycle for the vault.

Returns

Existing note plus reduced scan-cycle context when applicable.

Return type

Optional[str]