make_state_entry_from_current_row
Documentation for eth_defi.vault.top_vaults_json.make_state_entry_from_current_row function.
- make_state_entry_from_current_row(current_row, now_text, threshold_tvl, existing_entry=None)
Create or update sticky state for an exported current row.
- Parameters
current_row (eth_defi.vault.top_vaults_json.CurrentVaultRow) – Current row wrapper.
now_text (str) – Current timestamp formatted for state.
threshold_tvl (float) – Active
MIN_TVLthreshold.
- Returns
Updated state entry.
- Return type