make_current_vault_row

Documentation for eth_defi.vault.top_vaults_json.make_current_vault_row function.

make_current_vault_row(row, now, stale_warning_age_days)

Normalise one metrics dataframe row for sticky processing.

Parameters
  • row (pandas.Series) – Lifetime metrics dataframe row.

  • now (datetime.datetime) – Current naive UTC datetime.

  • stale_warning_age_days (int) – Warning age in days.

Returns

Normalised current row wrapper.

Return type

eth_defi.vault.top_vaults_json.CurrentVaultRow