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

build: max debt in allocator #26

Merged
merged 9 commits into from
Nov 17, 2023
Merged

build: max debt in allocator #26

merged 9 commits into from
Nov 17, 2023

Conversation

Schlagonia
Copy link
Collaborator

No description provided.

@Schlagonia Schlagonia linked an issue Nov 8, 2023 that may be closed by this pull request

event SetMaxAcceptableBaseFee(uint256 maxAcceptableBaseFee);
/// @notice An event emitted when the minimum time to wait is Updated.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make "updated" lowercase

Copy link
Collaborator Author

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");
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Schlagonia Schlagonia merged commit 52b1d06 into master Nov 17, 2023
4 checks passed
@Schlagonia Schlagonia deleted the debt-updates branch November 17, 2023 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generic debt allocator
2 participants