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

reduce SLOAD calls in _withdrawFromVault #4

Merged
merged 1 commit into from
Jul 7, 2021
Merged

Conversation

if(maxLosses != 0) {
vault.withdraw(yShares, address(this), maxLosses);
uint256 _maxLosses = maxLosses;
if(_maxLosses != 0) {

Choose a reason for hiding this comment

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

Add a space

Suggested change
if(_maxLosses != 0) {
if (_maxLosses != 0) {

@PierrickGT PierrickGT changed the base branch from master to fixes/c4-audit June 30, 2021 13:44
@PierrickGT PierrickGT merged commit 952cd16 into fixes/c4-audit Jul 7, 2021
@PierrickGT PierrickGT deleted the fix/45 branch July 7, 2021 16:54
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.

3 participants