Skip to content

Commit

Permalink
feat: Remove single flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefSnoopy committed Aug 7, 2024
1 parent 3d14b86 commit e46cf4c
Show file tree
Hide file tree
Showing 24 changed files with 27 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
180120
179955
Original file line number Diff line number Diff line change
@@ -1 +1 @@
634289
634124
Original file line number Diff line number Diff line change
@@ -1 +1 @@
900548
900384
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1265777
1265613
Original file line number Diff line number Diff line change
@@ -1 +1 @@
913480
913315
Original file line number Diff line number Diff line change
@@ -1 +1 @@
900549
900385
Original file line number Diff line number Diff line change
@@ -1 +1 @@
222600
222469
Original file line number Diff line number Diff line change
@@ -1 +1 @@
212096
211964
Original file line number Diff line number Diff line change
@@ -1 +1 @@
146273
146141
Original file line number Diff line number Diff line change
@@ -1 +1 @@
212096
211964
Original file line number Diff line number Diff line change
@@ -1 +1 @@
237562
237397
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1017192
1017028
Original file line number Diff line number Diff line change
@@ -1 +1 @@
977380
977216
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1021528
1021364
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1096118
1095954
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1056359
1056195
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1093888
1093724
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1017204
1017040
Original file line number Diff line number Diff line change
@@ -1 +1 @@
977392
977228
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1021525
1021361
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1094100
1093936
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1054341
1054177
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1091866
1091702
13 changes: 4 additions & 9 deletions src/pool-bin/BinFungiblePositionManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,20 +93,15 @@ contract BinFungiblePositionManager is
checkDeadline(deadline)
returns (bytes[] memory)
{
return abi.decode(vault.lock(abi.encode(msg.sender, false, lockData)), (bytes[]));
return abi.decode(vault.lock(abi.encode(msg.sender, lockData)), (bytes[]));
}

function lockAcquired(bytes calldata rawData) external override returns (bytes memory returnData) {
if (msg.sender != address(vault)) revert OnlyVaultCaller();

(address sender, bool isSingle, bytes memory lockData) = abi.decode(rawData, (address, bool, bytes));
if (isSingle) {
CallbackData memory data = abi.decode(lockData, (CallbackData));
return _handleSingleAction(data, sender, true);
} else {
bytes[] memory params = abi.decode(lockData, (bytes[]));
return _dispatch(params, sender);
}
(address sender, bytes memory lockData) = abi.decode(rawData, (address, bytes));
bytes[] memory params = abi.decode(lockData, (bytes[]));
return _dispatch(params, sender);
}

function _dispatch(bytes[] memory params, address sender) internal returns (bytes memory returnDataArrayBytes) {
Expand Down

0 comments on commit e46cf4c

Please sign in to comment.