Closed MerlinEgalite closed 10 months ago
@Rubilmax @Jean-Grimal can you create a PR to resolve conflicts please?
EDIT: nvm just saw @MathisGD's PR
@Rubilmax @Jean-Grimal can you create a PR to resolve conflicts please?
already edited my comment haha
I think that you can remove using MorphoMathLib for uint256;
from AdaptiveCurveIrm
The only op from MorphoMathLib
(math lib from morpho blue) is
int256 utilization = int256(
market.totalSupplyAssets > 0 ? market.totalBorrowAssets.wDivDown(market.totalSupplyAssets) : 0
);
But both of them are uint128
and not uint256
.
At this point, I'm wondering what are the consequences if one of the types (external to the IRM) changes, and you can't apply anymore the MathLib. Does it revert directly?
Looks good
Contains:
100
AdaptiveCurveIrm
103
107
MathLib.wMulDown
&MathLib.wDivDown
regarding their round-to-zero behavior in the integer space (#127)108
105
116
114
To0
ToZero
117