diff --git a/.forge-snapshots/mint.snap b/.forge-snapshots/mint.snap index 5d250ba5..b791689e 100644 --- a/.forge-snapshots/mint.snap +++ b/.forge-snapshots/mint.snap @@ -1 +1 @@ -422785 \ No newline at end of file +493134 \ No newline at end of file diff --git a/.forge-snapshots/mintWithLiquidity.snap b/.forge-snapshots/mintWithLiquidity.snap deleted file mode 100644 index b791689e..00000000 --- a/.forge-snapshots/mintWithLiquidity.snap +++ /dev/null @@ -1 +0,0 @@ -493134 \ No newline at end of file diff --git a/test/position-managers/Gas.t.sol b/test/position-managers/Gas.t.sol index 18fd5a66..a6b95e35 100644 --- a/test/position-managers/Gas.t.sol +++ b/test/position-managers/Gas.t.sol @@ -79,25 +79,7 @@ contract GasTest is Test, Deployers, GasSnapshot, LiquidityOperations { range = LiquidityRange({poolKey: key, tickLower: -300, tickUpper: 300}); } - // function test_gas_mint() public { - // uint256 amount0Desired = 148873216119575134691; // 148 ether tokens, 10_000 liquidity - // uint256 amount1Desired = 148873216119575134691; // 148 ether tokens, 10_000 liquidity - // INonfungiblePositionManager.MintParams memory params = INonfungiblePositionManager.MintParams({ - // range: range, - // amount0Desired: amount0Desired, - // amount1Desired: amount1Desired, - // amount0Min: 0, - // amount1Min: 0, - // deadline: block.timestamp + 1, - // recipient: address(this), - // hookData: ZERO_BYTES - // }); - // snapStart("mint"); - // lpm.mint(params); - // snapLastCall(); - // } - - function test_gas_mintWithLiquidity() public { + function test_gas_mint() public { Planner.Plan memory plan = Planner.init().add( Actions.MINT, abi.encode(range, 10_000 ether, block.timestamp + 1, address(this), ZERO_BYTES) ); @@ -105,7 +87,7 @@ contract GasTest is Test, Deployers, GasSnapshot, LiquidityOperations { currencies[0] = currency0; currencies[1] = currency1; lpm.modifyLiquidities(abi.encode(plan.actions, plan.params, currencies, currencies)); - snapLastCall("mintWithLiquidity"); + snapLastCall("mint"); } function test_gas_increaseLiquidity_erc20() public {