-
Notifications
You must be signed in to change notification settings - Fork 14
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
build: max debt in allocator #26
Conversation
|
||
event SetMaxAcceptableBaseFee(uint256 maxAcceptableBaseFee); | ||
/// @notice An event emitted when the minimum time to wait is Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make "updated" lowercase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -108,9 +191,22 @@ contract GenericDebtAllocator is Governance { | |||
// Make sure we have a target debt. | |||
require(config.targetRatio != 0, "no targetRatio"); | |||
|
|||
if (block.timestamp - config.lastUpdate <= minimumWait) { | |||
return (false, "min wait"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to cast the string to bytes()
like we do above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.