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

L02. Unnecessary check #1311

Closed
MerlinEgalite opened this issue Sep 23, 2022 · 0 comments · Fixed by #1313
Closed

L02. Unnecessary check #1311

MerlinEgalite opened this issue Sep 23, 2022 · 0 comments · Fixed by #1313

Comments

@MerlinEgalite
Copy link
Contributor

In borrowLogic function of EntryPositionsManager contract (in contracts/aave-v2/ and contracts/aave-v3/ folders), the check at line 209 is unnecessary. Consider calling _setBorrowing function without this check since the check consumes extra ~20000 gas at the first call and does not optimize gas consumption for further calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant