Skip to content

Commit

Permalink
ABDK CVF-93 and CVF-68 (#329)
Browse files Browse the repository at this point in the history
* ABDK CVF-93

* abdk-cvf68
  • Loading branch information
dianakocsis committed Sep 2, 2024
1 parent 257ff0e commit 2f9b2d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PositionManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ contract PositionManager is
uint128 amount1Min,
bytes calldata hookData
) internal onlyIfApproved(msgSender(), tokenId) onlyValidConfig(tokenId, config) {
uint256 liquidity = uint256(getPositionLiquidity(tokenId, config));
uint256 liquidity = getPositionLiquidity(tokenId, config);

// Can only call modify if there is non zero liquidity.
if (liquidity > 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/base/BaseActionsRouter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ abstract contract BaseActionsRouter is SafeCallback {
if (numActions != params.length) revert InputLengthMismatch();

for (uint256 actionIndex = 0; actionIndex < numActions; actionIndex++) {
uint256 action = uint256(uint8(actions[actionIndex]));
uint256 action = uint8(actions[actionIndex]);

_handleAction(action, params[actionIndex]);
}
Expand Down

0 comments on commit 2f9b2d2

Please sign in to comment.