Skip to content

Commit

Permalink
Merge pull request #116 from morpho-org/chore/remove-useless-using
Browse files Browse the repository at this point in the history
(nitpick) nitpick
  • Loading branch information
MathisGD authored Dec 20, 2023
2 parents f47e981 + 0046ff7 commit a3257ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AdaptiveCurveIrm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ contract AdaptiveCurveIrm is IAdaptiveCurveIrm {
using MathLib for int256;
using UtilsLib for int256;
using MorphoMathLib for uint128;
using MorphoMathLib for uint256;
using MarketParamsLib for MarketParams;

/* EVENTS */
Expand Down Expand Up @@ -95,7 +94,7 @@ contract AdaptiveCurveIrm is IAdaptiveCurveIrm {
endRateAtTarget = ConstantsLib.INITIAL_RATE_AT_TARGET;
} else {
// The speed is assumed constant between two updates, but it is in fact not constant because of interest.
// So the rate will be underestimated.
// So the rate is always underestimated.
int256 speed = ConstantsLib.ADJUSTMENT_SPEED.wMulToZero(err);
// market.lastUpdate != 0 because it is not the first interaction with this market.
// Safe "unchecked" cast because block.timestamp - market.lastUpdate <= block.timestamp <= type(int256).max.
Expand Down

0 comments on commit a3257ec

Please sign in to comment.