Skip to main content

status_to_liquidation_state_record

Function status_to_liquidation_state_record 

Source
pub fn status_to_liquidation_state_record(
    status: &AccountLiquidationStatus,
) -> LiquidationStateRecord
Expand 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.