Function mango_v4::health::spot_amount_taken_for_health_zero
source · pub fn spot_amount_taken_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 taken away before health decreases to zero?
If health is negative, returns 0.