feat: Allowing fixed point math with arbitrary denominators #314
Labels
enhancement
Enhancement of the code, not introducing new features.
stale
No activity for quite some time.
Right now wad_ray_math only offers math operations with denominators being WAD or RAY. This does not allow math between WAD and RAY but only WAD to WAD and RAY to RAY. It would be great to be able to specify a "denominator" (scale of the parameter you want to multiply or divide by) for more flexibility like it is done in this very popular solidity library https://github.com/transmissions11/solmate/blob/main/src/utils/FixedPointMathLib.sol#L36
would it make sense to port this library here?
Thanks,
I'd be happy to do it!
The text was updated successfully, but these errors were encountered: