annotate_sticky_record

Documentation for eth_defi.vault.top_vaults_json.annotate_sticky_record function.

annotate_sticky_record(record, state_entry, fresh)

Annotate a sticky current-row export.

Parameters
  • record (dict) – Exported current row.

  • state_entry (dict) – Sticky state entry.

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

Returns

Annotated copy.

Return type

dict