Skip to content

Commit

Permalink
name change, use calldata
Browse files Browse the repository at this point in the history
  • Loading branch information
snreynolds committed Aug 1, 2024
1 parent 5d815cd commit a5bad53
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_burn_empty.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
46857
46770
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_burn_empty_native.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
46675
46588
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_burn_nonEmpty.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
129716
129630
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_burn_nonEmpty_native.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
122638
122552
2 changes: 1 addition & 1 deletion .forge-snapshots/PositionManager_decrease_burnEmpty.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
133582
133496
Original file line number Diff line number Diff line change
@@ -1 +1 @@
126321
126235
4 changes: 2 additions & 2 deletions src/PositionManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {PositionConfig, PositionConfigLibrary} from "./libraries/PositionConfig.
import {BaseActionsRouter} from "./base/BaseActionsRouter.sol";
import {Actions} from "./libraries/Actions.sol";
import {CalldataDecoder} from "./libraries/CalldataDecoder.sol";
import {PosmStateLibrary} from "./libraries/PosmStateLibrary.sol";
import {PosmLiquidityLibrary} from "./libraries/PosmLiquidityLibrary.sol";

contract PositionManager is
IPositionManager,
Expand All @@ -39,7 +39,7 @@ contract PositionManager is
using CurrencyLibrary for Currency;
using PoolIdLibrary for PoolKey;
using PositionConfigLibrary for PositionConfig;
using PosmStateLibrary for IPoolManager;
using PosmLiquidityLibrary for IPoolManager;
using TransientStateLibrary for IPoolManager;
using SafeCast for uint256;
using CalldataDecoder for bytes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import {PoolIdLibrary} from "@uniswap/v4-core/src/types/PoolId.sol";

import {PositionConfig} from "./PositionConfig.sol";

/// @notice A library for reading POSM specific information from core, wraps core's StateLibrary
library PosmStateLibrary {
/// @notice A library for reading posm liquidity balances from core, wraps core's StateLibrary
library PosmLiquidityLibrary {
using StateLibrary for IPoolManager;
using PoolIdLibrary for PoolKey;

function getPositionLiquidity(IPoolManager poolManager, uint256 tokenId, PositionConfig memory config)
function getPositionLiquidity(IPoolManager poolManager, uint256 tokenId, PositionConfig calldata config)
internal
view
returns (uint128 liquidity)
Expand Down

0 comments on commit a5bad53

Please sign in to comment.