Module utils

Source
Expand description

Utils.

Functionsยง

apply_exponent_factor
Apply exponent factor using this formula: x^E.
apply_factor
Apply factor using this formula: A * x.
apply_factors
Apply factors using this formula: A * x^E.
div_to_factor
Convert the value to a factor after dividing by the divisor.
div_to_factor_signed
Convert the value to a factor after dividing by the divisor.
market_token_amount_to_usd
Market token amount to usd value.
usd_to_market_token_amount
Usd value to market token amount.