Structs

Assumes the account infos needed for the health computation follow a strict order.
Store information needed to compute account health
Stores information about perp market positions and their open orders.
Information about prices for a bank or perp market.
Takes a list of account infos containing
Information about reserved funds on Serum3 open orders accounts.
Temporary value used during health computations

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.
How much of a token can be gained before health increases to zero?
How much of a token can be taken away before health decreases to zero?