From 9cbf8aaa153b99b986825dff5afb3f2448402485 Mon Sep 17 00:00:00 2001 From: Rubilmax Date: Mon, 11 Dec 2023 17:47:44 +0100 Subject: [PATCH] docs(irm): speed is not constant --- src/AdaptiveCurveIrm.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AdaptiveCurveIrm.sol b/src/AdaptiveCurveIrm.sol index 4e769b4b..210844a1 100644 --- a/src/AdaptiveCurveIrm.sol +++ b/src/AdaptiveCurveIrm.sol @@ -126,8 +126,7 @@ contract AdaptiveCurveIrm is IAdaptiveCurveIrm { avgRateAtTarget = INITIAL_RATE_AT_TARGET; endRateAtTarget = INITIAL_RATE_AT_TARGET; } else { - // Note that the speed is assumed constant between two interactions, but in theory it increases because of - // interests. So the rate will be slightly underestimated. + // Note that the speed is assumed constant between two interactions, but it is not because of interest. int256 speed = ADJUSTMENT_SPEED.wMulDown(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.