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

Two checks can be summarized in one #2175

Closed
andrijamitrovic23 opened this issue Jul 27, 2023 · 0 comments · Fixed by #2179
Closed

Two checks can be summarized in one #2175

andrijamitrovic23 opened this issue Jul 27, 2023 · 0 comments · Fixed by #2179
Assignees
Labels
audit item is from an audit refactor optional label for items that are related to implementation work and do not change functionality

Comments

@andrijamitrovic23
Copy link

This check within roundUpByMultipleOf function, which treats cursor == 0 and cursor %v==0 as two different cases can be summarized into a single cursor % v == 0 (because 0 % i is always 0, for any i).

@rootulp rootulp self-assigned this Jul 27, 2023
@rootulp rootulp added refactor optional label for items that are related to implementation work and do not change functionality audit item is from an audit and removed needs:triage labels Jul 27, 2023
@rootulp rootulp added this to the Post-mainnet milestone Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audit item is from an audit refactor optional label for items that are related to implementation work and do not change functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants