Skip to content

Commit

Permalink
docs(irm): speed is not constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Dec 11, 2023
1 parent ed7f842 commit 9cbf8aa
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 @@ -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.
Expand Down

0 comments on commit 9cbf8aa

Please sign in to comment.