v3-periphery icon indicating copy to clipboard operation
v3-periphery copied to clipboard

mint could be separated from increaseLiquidity if token id is counterfactual

Open moodysalem opened this issue 3 years ago • 1 comments

we use multicall everywhere for batch operations mint contains duplicated logic with increaseLiquidity however we cannot mint a token and then increase its liquidity because we do not know the minted token id until after the mint succeeds

we could reduce the duplication of logic if the token id were counterfactually computed from the sender address + mint nonce, but it would be costly and introduce mint ordering dependency

moodysalem avatar Apr 05 '21 21:04 moodysalem

can't figure out a good way to do this, making p1

moodysalem avatar Apr 06 '21 16:04 moodysalem