Cork-Technology / Depeg-swap

9 stars 0 forks source link

Smart Contract : unified math library #158

Open ziankork opened 4 hours ago

ziankork commented 4 hours ago

Overview

Currently the math is using different math library on 1 place to another, we should standardize this to avoid precision issue in calculation.

my suggestion would be using : https://github.com/paulrberg/prb-math since it's using fixed point numbers and is intuitive enough and generally have good precision

ziankork commented 4 hours ago

I already started using it for the buy DS math