You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2023. It is now read-only.
We will want to use
Ratio
in calculations.Missing functions
mul_int(Ratio, u128) -> u128
(multiplyRatio
withu128
, returning128
) (make generic? probably not)invert(Ratio) -> Ratio
(invert numerator and denominator)rounding_mul(Ratio, Ratio. Rounding) -> Ratio
(multiply 2 ratios and round them down from(U256, U256)
toRatio
full_mul(Ratio, Ratio) -> (U256, U256)
The text was updated successfully, but these errors were encountered: