Open code423n4 opened 2 years ago
Use Reentrancy guard based on solmate implementation, plus use uint32 instead of uint256, overall savings; How would this change save 475255 gas?
Also the uint32 will incur overhead. I don't think the benchmark to be valid.
100 gas from the cached SLOAD
100
Gas report
Use cached
_auction
varible instead of state variable.Use Reentrancy guard based on solmate implementation, plus use
uint32
instead ofuint256
, overall savings;Overall gas change: -475255 (-1.036%)
Changes;Inline modifier (used only once)
You are using the modifier
onlyPendingOwner
only once, insteaf of create a modifier just add a check onacceptOwnership
to save gasThese funcions can be declared as external to save gas;
cancelOwnershipTransfer