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

test: disable rate limit #427

Merged
merged 4 commits into from
Oct 11, 2024
Merged

test: disable rate limit #427

merged 4 commits into from
Oct 11, 2024

Conversation

DhairyaSethi
Copy link
Member

No description provided.

Copy link

height bot commented Oct 11, 2024

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@@ -252,6 +252,105 @@ contract TestGhoCcipSteward is TestGhoBase {
);
}

function testDisableRateLimitFromNonZeroToZero() public {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can rename to testChangeEnabledRateLimit and test both directions: enabled -> disabled -> enabled

Copy link
Member Author

Choose a reason for hiding this comment

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

as per discussion on slack: it is currently expected behaviour that Steward cannot re-enable disabled rate limits (due to these range checks using the current value as max permittable value) and once disabled, the dao can enable rate limits again by directly interacting with the token pool

test for this behaviour added in - a194c76

@miguelmtzinf miguelmtzinf merged commit a8f654a into main Oct 11, 2024
36 checks passed
@miguelmtzinf miguelmtzinf deleted the test/disable-rate-limit branch October 11, 2024 15:30
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.

2 participants