Function market_token_amount_to_usd

Source
pub fn market_token_amount_to_usd<T>(
    amount: &T,
    pool_value: &T,
    supply: &T,
) -> Option<T>
where T: MulDiv,
Expand description

Market token amount to usd value.

Returns None if the computation cannot be done or supply is zero.