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

WETH9 state variable can be made constant to save gas costs #6

Open
cleanunicorn opened this issue Oct 26, 2021 · 0 comments
Open

WETH9 state variable can be made constant to save gas costs #6

cleanunicorn opened this issue Oct 26, 2021 · 0 comments

Comments

@cleanunicorn
Copy link
Member

cleanunicorn commented Oct 26, 2021

Description

WETH9 state variable never changes therefore it can be defined as a constant to save gas costs:

address public WETH9 = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

@andreiashu andreiashu changed the title Optimize gas WETH9 state variable can be made constant to save gas costs Oct 29, 2021
@andreiashu andreiashu added Minor and removed WIP labels Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants