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

Gas Optimizations #392

Open
code423n4 opened this issue Sep 19, 2022 · 1 comment
Open

Gas Optimizations #392

code423n4 opened this issue Sep 19, 2022 · 1 comment
Labels
bug Something isn't working G (Gas Optimization)

Comments

@code423n4
Copy link
Contributor

See the markdown file with the details of this report here.

@code423n4 code423n4 added bug Something isn't working G (Gas Optimization) labels Sep 19, 2022
code423n4 added a commit that referenced this issue Sep 19, 2022
code423n4 added a commit that referenced this issue Sep 19, 2022
@HickupHH3
Copy link
Collaborator

HickupHH3 commented Nov 8, 2022

**State variables only set in the constructor should be declared immutable

Tested with only PegOracle, saved about 30k gas for 3 immutables => about 10k per variable, but this gas saving is only the deployment costs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working G (Gas Optimization)
Projects
None yet
Development

No branches or pull requests

2 participants