resolve_export_threshold_tvl

Documentation for eth_defi.vault.top_vaults_json.resolve_export_threshold_tvl function.

resolve_export_threshold_tvl(record, default_threshold)

Resolve the peak-NAV export threshold for one vault row.

Most vaults use the global THRESHOLD_TVL, but protocols listed in PROTOCOL_MIN_TVL_OVERRIDES use their own bar. The lookup is by exported protocol_slug so it does not depend on any protocol package.

Parameters
  • record (dict) – Exported vault row, expected to carry protocol_slug.

  • default_threshold (float) – Fallback threshold applied when no protocol override matches.

Returns

Peak-NAV threshold in denomination units for this row.

Return type

float