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 #1328

Open
code423n4 opened this issue Apr 13, 2023 · 2 comments
Open

Gas Optimizations #1328

code423n4 opened this issue Apr 13, 2023 · 2 comments
Labels

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 Apr 13, 2023
code423n4 added a commit that referenced this issue Apr 13, 2023
code423n4 added a commit that referenced this issue Apr 13, 2023
@HickupHH3
Copy link

HickupHH3 commented Jun 10, 2023

Highly recommend categorizing by issue instead of per contract, easier to judge.

Formatting can be better.

Satisfactory because:

  • Made the major gas saving findings (variable immutability, avoiding multiple SLOADs)
  • Has a few unique recommendations:
    • The contract has lots of code from previous version that are being used in the latest version. While the storage variable may be needed in order to not break the storage layout, all the associated functionality in code can be removed in order to save deployment gas costs.
    • condition _underlying != address(0) has been already checked by the caller to the _bathify function.
    • batchOffer and batchRequote functions should call the offer internally to execute a jump instead of a function call

@c4-judge
Copy link
Contributor

HickupHH3 marked the issue as grade-b

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

No branches or pull requests

4 participants