LinkedAddress struct can be packed to save an SSTORE #72
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
TomFrenchBlockchain
Vulnerability details
Impact
Gas costs on linking/unlinking addresses
Proof of Concept
https://github.com/code-423n4/2021-12-sublime/blob/9df1b7c4247f8631647c7627a8da9bdc16db8b11/contracts/Verification/Verification.sol#L10-L13
The activation timestamp can be restricted to a
uint64
variable so that it shares a slot with themasterAddress
. This will save an SSTORE and a substantial amount of gas.Recommended Mitigation Steps
As above.
The text was updated successfully, but these errors were encountered: