Skip to content

Commit

Permalink
Moved some things around
Browse files Browse the repository at this point in the history
  • Loading branch information
mehranhydary committed Sep 16, 2024
1 parent 3fa5a3d commit 7afc717
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions contracts/test/MiladyPoolOrderManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,10 @@ contract MiladyPoolOrderManagerTest is MiladyPoolDeployer, Deployers {

POOL_MANAGER = manager;

_setUpMiladyPool();

// Mock Tokens Setup
(token0, token1) = deployMintAndApprove2Currencies();

IERC20Minimal(Currency.unwrap(key.currency0)).approve(
address(hooksUseable),
1000 ether
);

IERC20Minimal(Currency.unwrap(key.currency1)).approve(
address(hooksUseable),
1000 ether
);
_setUpMiladyPool();

(key, ) = initPool(
token0,
Expand All @@ -89,6 +79,16 @@ contract MiladyPoolOrderManagerTest is MiladyPoolDeployer, Deployers {
ZERO_BYTES
);

IERC20Minimal(Currency.unwrap(key.currency0)).approve(
address(hooksUseable),
1000 ether
);

IERC20Minimal(Currency.unwrap(key.currency1)).approve(
address(hooksUseable),
1000 ether
);

modifyLiquidityRouter.modifyLiquidity(
key,
IPoolManager.ModifyLiquidityParams({
Expand Down

0 comments on commit 7afc717

Please sign in to comment.