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

fix: minor improvements and code optimizations #339

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

yushihang
Copy link

No description provided.

yushihang added 6 commits January 31, 2025 17:25
Remove the duplicate import statement of IState interface to avoid redundancy and improve code clarity.
Change "it's" to "its" in the struct documentation to use correct English grammar for the possessive form.
Change "An value" to "A value" in the auxValue parameter description to follow correct English article usage.
Change "requiere" to "require" in the comment header to fix the spelling of Solidity keyword.
The validPercentValue modifier had a redundant check for `percent < 0` since
the parameter is of type uint256 which cannot be negative. Removed this check
to improve code clarity and gas efficiency.
The validPercentValue modifier had a redundant check for `percent < 0` since
the parameter is of type uint256 which cannot be negative. Removed this check
to improve code clarity and gas efficiency.
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.

1 participant