Structs

Assumes the account infos needed for the health computation follow a strict order.
Information about prices for a bank or perp market.
Takes a list of account infos containing

Enums

There are three types of health:

Traits

This trait abstracts how to find accounts needed for the health computation.

Functions

Compute health with an arbitrary AccountRetriever
Computes health for a mango account given a set of account infos
Generate a HealthCache for an account and its health accounts.