-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(constructor): add parameter bounds
- Loading branch information
Showing
3 changed files
with
40 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
library AdaptativeCurveIrmLib { | ||
/// @notice Maximum rate at target per second (scaled by WAD) (1B% APR). | ||
uint256 internal constant MAX_RATE_AT_TARGET = uint256(0.01e9 ether) / 365 days; | ||
|
||
/// @notice Mininimum rate at target per second (scaled by WAD) (0.1% APR). | ||
uint256 internal constant MIN_RATE_AT_TARGET = uint256(0.001 ether) / 365 days; | ||
|
||
/// @notice Maximum curve steepness allowed (scaled by WAD). | ||
uint256 internal constant MAX_CURVE_STEEPNESS = 10_000 ether; | ||
|
||
/// @notice Maximum adjustment speed allowed (scaled by WAD). | ||
uint256 internal constant MAX_ADJUSTMENT_SPEED = uint256(10_000 ether) / 365 days; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters