From 93f012ea6c0516cbbf62da3bb7b1cb9c0a838d4c Mon Sep 17 00:00:00 2001 From: saucepoint Date: Wed, 26 Jun 2024 23:44:09 -0400 Subject: [PATCH] mint to recipient --- contracts/NonfungiblePositionManager.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/NonfungiblePositionManager.sol b/contracts/NonfungiblePositionManager.sol index f8f55342..e2a98abb 100644 --- a/contracts/NonfungiblePositionManager.sol +++ b/contracts/NonfungiblePositionManager.sol @@ -77,12 +77,12 @@ contract NonfungiblePositionManager is INonfungiblePositionManager, BaseLiquidit _closeCallerDeltas(delta, range.poolKey.currency0, range.poolKey.currency1, recipient, false); _closeThisDeltas(thisDelta, range.poolKey.currency0, range.poolKey.currency1); } else { - delta = _unlockAndIncreaseLiquidity(msg.sender, range, liquidity, hookData, false); + delta = _unlockAndIncreaseLiquidity(recipient, range, liquidity, hookData, false); } // mint receipt token _mint(recipient, (tokenId = _nextId++)); - tokenPositions[tokenId] = TokenPosition({owner: msg.sender, range: range}); + tokenPositions[tokenId] = TokenPosition({owner: recipient, range: range}); } // NOTE: more expensive since LiquidityAmounts is used onchain