annotate_current_record

Documentation for eth_defi.vault.top_vaults_json.annotate_current_record function.

annotate_current_record(record, state_entry, fresh)

Annotate an exported current row.

Parameters
  • record (dict) – Exported row.

  • state_entry (Optional[dict]) – Previous or current state entry.

  • fresh (bool) – Whether the row is fresh.

Returns

Annotated copy.

Return type

dict