wad_ray_math
Provides functions to perform calculations with Wad and Ray units @dev Provides mul and div function for wads (decimal numbers with 18 digits of precision) and rays (decimal numbers with 27 digits of precision) Operations are rounded. If a value is >=.5, will be rounded up, otherwise rounded down. https://github.com/aave/aave-v3-core/blob/master/contracts/protocol/libraries/math/WadRayMath.sol
Fully qualified path: alexandria_math::wad_ray_math
Free functions
| wad | Return the wad value… |
| ray | Return the ray value… |
| half_wad | Return the half wad value… |
| half_ray | Return the half ray value… |
| wad_mul | Multiplies two wad, rounding half up to the nearest wad… |
| wad_div | Divides two wad, rounding half up to the nearest wad… |
| ray_mul | Multiplies two ray, rounding half up to the nearest ray… |
| ray_div | Divides two ray, rounding half up to the nearest ray… |
| ray_to_wad | Casts ray down to wad… |
| wad_to_ray | Converts wad up to ray… |