pub fn status_to_liquidation_state_record(
status: &AccountLiquidationStatus,
) -> LiquidationStateRecordExpand description
Convert an AccountLiquidationStatus to a LiquidationStateRecord for
database storage.
This was previously LiquidationCache::status_to_new_state in the root
crate. All the types it touches live in hypercall_types / hypercall_db,
so it belongs here.