Skip to content

Commit

Permalink
mint to recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
saucepoint committed Jun 27, 2024
1 parent 80b5185 commit 93f012e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/NonfungiblePositionManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93f012e

Please sign in to comment.