Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/libraries/UniswapV4Lib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,11 @@ library UniswapV4Lib {
{
bytes memory actions = abi.encodePacked(
uint8(Actions.MINT_POSITION),
uint8(Actions.SETTLE_PAIR)
uint8(Actions.CLOSE_CURRENCY),
uint8(Actions.CLOSE_CURRENCY)
);

bytes[] memory params = new bytes[](2);
bytes[] memory params = new bytes[](3);

params[0] = abi.encode(
poolKey, // Which pool to mint in
Expand All @@ -434,10 +435,8 @@ library UniswapV4Lib {
"" // No hook data needed
);

params[1] = abi.encode(
poolKey.currency0, // First token to settle
poolKey.currency1 // Second token to settle
);
params[1] = abi.encode(poolKey.currency0); // First token to close
params[2] = abi.encode(poolKey.currency1); // Second token to close

return _getModifyLiquiditiesCallData(actions, params);
}
Expand Down
Loading