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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added unchecked scope in safe places #225

Merged
merged 2 commits into from
Oct 14, 2021

Conversation

asselstine
Copy link
Contributor

No description provided.

@asselstine
Copy link
Contributor Author

@PierrickGT PierrickGT self-assigned this Oct 14, 2021
Comment on lines +218 to +220
unchecked {
_currentAwardBalance = currentAwardBalance - _amount;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
unchecked {
_currentAwardBalance = currentAwardBalance - _amount;
}
unchecked {
_currentAwardBalance = currentAwardBalance - _amount;
}

@asselstine asselstine force-pushed the pool-1801-adding-unchecked-directive-can-save-gas branch from a8e7437 to 1a62444 Compare October 14, 2021 04:12
@asselstine asselstine merged commit 3960bbd into master Oct 14, 2021
@asselstine asselstine deleted the pool-1801-adding-unchecked-directive-can-save-gas branch October 14, 2021 04:12
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.

None yet

2 participants