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

saucepoint pfp
saucepoint
@poi
woah, i think you are right it is possible to pack it not sure of the reason why its hashed, maybe since thats how PoolKey did it
1 reply
0 recast
4 reactions

Haardik pfp
Haardik
@haardikkk
hmmm, that's a good point. I dont see any obvious reasons off the top of my head right now - maybe there's larger implications though tagging @poi who may know more about v4 core's design decisions
0 reply
0 recast
1 reaction