Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document speed factor value #40

Merged
merged 4 commits into from
Sep 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/SpeedJumpIrm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,17 @@ contract SpeedJumpIrm is IIrm {

/* CONSTANTS */

/// @notice Max rate (1B% APR).
/// @notice Max rate (1B% APR) (per second) (scaled by WAD).
MathisGD marked this conversation as resolved.
Show resolved Hide resolved
uint256 public constant MAX_RATE = uint256(1e7 ether) / 365 days;
/// @notice Min rate (0.1% APR).
/// @notice Min rate (0.1% APR) (per second) (scaled by WAD).
MathisGD marked this conversation as resolved.
Show resolved Hide resolved
uint256 public constant MIN_RATE = uint256(0.001 ether) / 365 days;
/// @notice Address of Morpho.
address public immutable MORPHO;
/// @notice Ln of the jump factor (scaled by WAD).
uint256 public immutable LN_JUMP_FACTOR;
/// @notice Speed factor (scaled by WAD).
/// @dev The speed is per second, so the rate moves at a speed of SPEED_FACTOR * err each second (compounded). A
MathisGD marked this conversation as resolved.
Show resolved Hide resolved
/// typical value for the SPEED_FACTOR would be 10 ethers / 365 days.
uint256 public immutable SPEED_FACTOR;
/// @notice Target utilization (scaled by WAD).
uint256 public immutable TARGET_UTILIZATION;
Expand Down