Gas Optimizations #154
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
G (Gas Optimization)
resolved
Finding has been patched by sponsor (sponsor pls link to PR containing fix)
Redundant Operation
Description
address(this).balance - _fromBalance
is found to be operated twice while it could be operated once and save the result to a local variable for later use.Permalinks
Mitigation
For greater gas-optimization, the code can be rewrite as following:
The text was updated successfully, but these errors were encountered: