Gas Optimizations #119
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
G (Gas Optimization)
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Using requirement instead of modifier for authorization consumes more gas:
Seven functions at :https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraStakingProxy.sol contract checks if the msg.sender is the owner using the require instead of using modifier this consumes gas more,
Uses modifier will consumes less gas, one of the functions as example:
change it to :
The text was updated successfully, but these errors were encountered: