morpho-org / morpho-blue-irm

Morpho Blue Interest Rate Models
https://morpho.org
MIT License
26 stars 17 forks source link

`LN2_INT` could be internal to be used by integrators (include in the test suite) #43

Closed Rubilmax closed 11 months ago

Rubilmax commented 1 year ago

Context

https://github.com/morpho-labs/morpho-blue-irm/blob/8440cb45c70866542330b97db0b8ebc03aec284b/src/libraries/MathLib.sol#L20

Issue

Instead of being able to uint256(MathLib.LN2_INT), an integrator has to define again LN2_INT (or its uint256 equivalent)