Closed xenide closed 6 months ago
best case scenario:
worst case scenario:
keccak256
Worst case scenario:
mapping(address token0 => mapping(address token1 => bytes wtv))
Doesn't work because the the bytes will track length. So that's one more SLOAD
bytes
mapping(address token0 => mapping(address token1 => bytes wtv))[0:32]
doesn't even compile
Currently
best case scenario:
worst case scenario:
Implemented solution
best case scenario:
keccak256
token0-token1 and then loads 1 storage slotWorst case scenario:
Potential Further improvements
Alternatives tried
Doesn't work because the the
bytes
will track length. So that's one more SLOADdoesn't even compile