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

improve: [L-01] Incorrect or misleading documentation #251

Merged
merged 1 commit into from
Mar 16, 2023

Conversation

nicholaspai
Copy link
Member

@nicholaspai nicholaspai commented Mar 15, 2023

From Audit

Several instances of docstrings or comments in the codebase were found to be erroneous. In
particular:

  • In the SpokePool contract's _fillRelay function, the comment on line 1003
    appears unrelated to the if statement on the following line. Consider revising the
    comment.
  • The docstring for pauseDeposits in the SpokePool contract says it "pauses deposit
    and fill functions", but pausing fill functions is performed by calling pauseFills , which
    does not have a docstring.

Consider revising the pauseDeposits docstring and adding a docstring to pauseFills.

Several instances of docstrings or comments in the codebase were found to be erroneous. In
particular:

- In the SpokePool contract's `_fillRelay` function, the comment on line 1003
appears unrelated to the if statement on the following line. Consider revising the
comment.
- The docstring for `pauseDeposits` in the SpokePool contract says it "pauses deposit
and fill functions", but pausing fill functions is performed by calling `pauseFills` , which
does not have a docstring.

Consider revising the `pauseDeposits` docstring and adding a docstring to `pauseFills`.
@nicholaspai nicholaspai added the OZ Audit - March 2023 Resolves issue discovered in March 2023 OZ Audit label Mar 15, 2023
Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

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

LGTM!

@nicholaspai nicholaspai merged commit 21d9ed8 into master Mar 16, 2023
@nicholaspai nicholaspai deleted the audit2/l01 branch March 16, 2023 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OZ Audit - March 2023 Resolves issue discovered in March 2023 OZ Audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants