Skip to content

Commit

Permalink
comments:
Browse files Browse the repository at this point in the history
  • Loading branch information
snreynolds committed May 9, 2024
1 parent 53e4534 commit c230363
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.

This file was deleted.

2 changes: 1 addition & 1 deletion src/libraries/Position.sol
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ library Position {

/// @solidity memory-safe-assembly
assembly {
mstore(0x26, salt) // // [0x26, 0x46)
mstore(0x26, salt) // [0x26, 0x46)
mstore(0x06, tickUpper) // [0x23, 0x26)
mstore(0x03, tickLower) // [0x20, 0x23)
mstore(0, owner) // [0x0c, 0x20)
Expand Down
6 changes: 0 additions & 6 deletions test/ModifyLiquidity.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,6 @@ contract ModifyLiquidityTest is Test, Deployers, GasSnapshot {

modifyLiquidityRouter.modifyLiquidity(simpleKey, LIQ_PARAM_SALT, ZERO_BYTES);
snapLastCall("create new liquidity to a position with salt");

IPoolManager.ModifyLiquidityParams memory samePositionNewSalt = LIQ_PARAM_SALT;
samePositionNewSalt.salt = hex"BEEF";

modifyLiquidityRouter.modifyLiquidity(simpleKey, samePositionNewSalt, ZERO_BYTES);
snapLastCall("create new liquidity to same position, different salt");
}

function test_gas_modifyLiquidity_updateSamePosition_withSalt() public {
Expand Down
1 change: 0 additions & 1 deletion test/PoolManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
pragma solidity ^0.8.20;

import {Test} from "forge-std/Test.sol";
import {Vm} from "forge-std/Vm.sol";
import {IHooks} from "../src/interfaces/IHooks.sol";
import {Hooks} from "../src/libraries/Hooks.sol";
import {IPoolManager} from "../src/interfaces/IPoolManager.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/libraries/Position.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract PositionTest is Test {

mapping(bytes32 => Position.Info) internal positions;

function test_get_fuzz(address owner, int24 tickLower, int24 tickUpper, bytes32 salt) public {
function test_get_fuzz(address owner, int24 tickLower, int24 tickUpper, bytes32 salt) public view {
bytes32 positionKey = keccak256(abi.encodePacked(owner, tickLower, tickUpper, salt));
Position.Info storage expectedPosition = positions[positionKey];
Position.Info storage position = positions.get(owner, tickLower, tickUpper, salt);
Expand Down

0 comments on commit c230363

Please sign in to comment.