Function mango_v4::health::spot_amount_given_for_health_zero
source · pub fn spot_amount_given_for_health_zero(
health: I80F48,
starting_spot: I80F48,
asset_weighted_price: I80F48,
liab_weighted_price: I80F48
) -> Result<I80F48>
Expand description
How much of a token can be gained before health increases to zero?
Returns 0 if health is positive.