Content pfp
Content
@
0 reply
0 recast
0 reaction

fico pfp
fico
@fico23
why is position represented with keccak256(owner+tickLower+tickUpper) when owner+tickLower+tickUpper fit inside bytes32? seems like this could work without keccak
3 replies
0 recast
6 reactions

Haardik pfp
Haardik
@haardikkk
only thing I can think of is `abi.encodePacked` doesn't return a `bytes32` - it returns a dynamic `bytes` data type. keccak'ing it just makes sure the key is always a fixed size bytes32
2 replies
0 recast
1 reaction

fico pfp
fico
@fico23
Also it doesnt have to be encodePacked it can be simple bit OR and bitshift left
0 reply
0 recast
1 reaction