Function mango_v4::health::compute_health_from_fixed_accounts
source · pub fn compute_health_from_fixed_accounts(
account: &MangoAccountRef<'_>,
health_type: HealthType,
ais: &[AccountInfo<'_>],
now_ts: u64
) -> Result<I80F48>
Expand description
Computes health for a mango account given a set of account infos
These account infos must fit the fixed layout defined by FixedOrderAccountRetriever.