From 95a18949c22eff9d52dae49bab326a70078b2f46 Mon Sep 17 00:00:00 2001 From: 0x2 <75550506+Code0x2@users.noreply.github.com> Date: Sun, 12 Nov 2023 10:58:08 -0800 Subject: [PATCH] add liquidity --- test/V4SwapIntent.t.sol | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/V4SwapIntent.t.sol b/test/V4SwapIntent.t.sol index 4831f7c8..e203877a 100644 --- a/test/V4SwapIntent.t.sol +++ b/test/V4SwapIntent.t.sol @@ -54,13 +54,21 @@ contract V4SwapIntentTest is BaseTest { // Deploy new poolamanger and create a DAI/WETH pool with no hooks poolManager = new PoolManager(30000000); - poolManager.initialize(PoolKey({ + PoolKey memory pool = PoolKey({ currency0: Currency.wrap(address(DAI)), currency1: Currency.wrap(address(WETH)), fee: 3000, tickSpacing: 60, hooks: IHooks(address(0)) - }), 1823965582028705631020492031, new bytes(0)); + }); + + poolManager.initialize(pool, 1823965582028705631020492031, new bytes(0)); + + poolManager.modifyPosition(pool, IPoolManager.ModifyPositionParams({ + tickLower: -887220, + tickUpper: 887220, + liquidityDelta: 1000000 + }), new bytes(0)); // Deposit ETH from Searcher signer to pay for searcher's gas // vm.prank(solverOneEOA);