clear_period_rankings

Documentation for eth_defi.research.metrics_freshness.clear_period_rankings function.

clear_period_rankings(record)

Clear ranking fields on a replayed or patched export record.

Rankings are computed over the vaults that were recalculated in the same run, so a record replayed from an earlier run carries ranks from a different vault universe and would produce duplicate, non-comparable curator ranks. Cleared in place; skipped vaults show no current ranks.

Parameters

record (dict) – Exported vault JSON row with a period_results list.

Returns

The same record, mutated.

Return type

dict