Packing storage variables in Auction would save gas #109
Labels
bug
Warden finding
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
t11s
Vulnerability details
Impact
Gas is wasted by not packing storage variables in Auction. Combining smaller value types to fill 256 slots would drastically reduce the number of SLOADs and SSTORES used in the contract.
Proof of Concept
https://github.com/code-423n4/2021-09-defiProtocol/blob/52b74824c42acbcd64248f68c40128fe3a82caf6/contracts/contracts/Auction.sol#L16-L21
The text was updated successfully, but these errors were encountered: