Use rust_decimal
instead of f64
to perform token conversions and calculations
#435
Labels
rust_decimal
instead of f64
to perform token conversions and calculations
#435
The
rust_decimal
crate is safer for avoiding round-off errors that can result from some imprecision with floats. This crate is also starting to be used elsewhere in proof-of-stake. We should phase out the use of floats in the code altogether.The text was updated successfully, but these errors were encountered: