Skip to content

Commit

Permalink
fix: pancakeswap test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Van0k committed Apr 17, 2024
1 parent ea81c8d commit a8286f4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions contracts/test/suites/LiveTestHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,10 @@ contract LiveTestHelper is IntegrationTestHelper {

address uniV3Adapter = getAdapter(creditManager, Contracts.UNISWAP_V3_ROUTER);

vm.prank(CONFIGURATOR);
UniswapV3Adapter(uniV3Adapter).setPoolStatusBatch(pools);
if (uniV3Adapter != address(0)) {
vm.prank(CONFIGURATOR);
UniswapV3Adapter(uniV3Adapter).setPoolStatusBatch(pools);
}

pools = new UniswapV3PoolStatus[](uniV3Pools.length);

Expand All @@ -240,8 +242,10 @@ contract LiveTestHelper is IntegrationTestHelper {

address pancakeswapV3Adapter = getAdapter(creditManager, Contracts.PANCAKESWAP_V3_ROUTER);

vm.prank(CONFIGURATOR);
UniswapV3Adapter(pancakeswapV3Adapter).setPoolStatusBatch(pools);
if (pancakeswapV3Adapter != address(0)) {
vm.prank(CONFIGURATOR);
UniswapV3Adapter(pancakeswapV3Adapter).setPoolStatusBatch(pools);
}
}
// SIMPLE INTERFACE SWAPPERS
GenericSwapPair[] memory genericPairs = creditManagerParams.genericSwapPairs;
Expand Down

0 comments on commit a8286f4

Please sign in to comment.