Skip to content

Commit

Permalink
chore: Made PoolParametersHelper internal library (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefSnoopy authored Apr 22, 2024
1 parent 9ed33c4 commit ab17fb7
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
135044
135043
Original file line number Diff line number Diff line change
@@ -1 +1 @@
108917
108914
2 changes: 1 addition & 1 deletion .forge-snapshots/BinHookTest#testSwapSucceedsWithHook.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
139137
139136
Original file line number Diff line number Diff line change
@@ -1 +1 @@
90480
90479
Original file line number Diff line number Diff line change
@@ -1 +1 @@
319342
319341
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19391
19392
2 changes: 1 addition & 1 deletion .forge-snapshots/BinPoolManagerTest#testNoOpGas_Swap.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22508
22507
2 changes: 1 addition & 1 deletion src/pool-bin/libraries/BinPoolParametersHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ library BinPoolParametersHelper {
* @dev Helper method to set bin step in the encoded pair parameter
* @return The new encoded pair parameter
*/
function setBinStep(bytes32 params, uint16 binStep) external pure returns (bytes32) {
function setBinStep(bytes32 params, uint16 binStep) internal pure returns (bytes32) {
return params.set(binStep, Encoded.MASK_UINT16, OFFSET_BIN_STEP);
}
}
2 changes: 1 addition & 1 deletion src/pool-cl/libraries/CLPoolParametersHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ library CLPoolParametersHelper {
* @dev Helper method to set tick spacing in the encoded pair parameter
* @return The new encoded pair parameter
*/
function setTickSpacing(bytes32 params, int24 tickSpacing) external pure returns (bytes32) {
function setTickSpacing(bytes32 params, int24 tickSpacing) internal pure returns (bytes32) {
return params.set(uint24(tickSpacing), Encoded.MASK_UINT24, OFFSET_TICK_SPACING);
}
}

0 comments on commit ab17fb7

Please sign in to comment.