From 2228a305b25aaf02b3561d534001569369ce0661 Mon Sep 17 00:00:00 2001 From: amish kohli Date: Fri, 28 Jun 2024 21:43:56 +0530 Subject: [PATCH 1/2] Revert "feat: base test" This reverts commit 190340a088f21d57bb0015df7479ede1ae64ef3b. --- contracts/test/GlobalPauser.t.sol | 28 +--------------------------- contracts/test/config/BaseTest.t.sol | 1 - 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/contracts/test/GlobalPauser.t.sol b/contracts/test/GlobalPauser.t.sol index 603bfcce..bc6c86c8 100644 --- a/contracts/test/GlobalPauser.t.sol +++ b/contracts/test/GlobalPauser.t.sol @@ -36,7 +36,7 @@ contract GlobalPauserTest is BaseTest { pauser.pauseAll(); } - function testPauseAllMode() public debuggingOnly forkAtBlock(MODE_MAINNET, 9269895) { + function testPauseAll() public debuggingOnly forkAtBlock(MODE_MAINNET, 9269895) { (, PoolDirectory.Pool[] memory pools) = PoolDirectory(poolDirectory).getActivePools(); for (uint256 i = 0; i < pools.length; i++) { ICErc20[] memory markets = IonicComptroller(pools[i].comptroller).getAllMarkets(); @@ -59,30 +59,4 @@ contract GlobalPauserTest is BaseTest { } } } - - function testPauseAllBase() public debuggingOnly forkAtBlock(BASE_MAINNET, 15970403) { - address _poolDirectory = 0xE1A3006be645a80F206311d9f18C866c204bA02f; - pauser = GlobalPauser(0x48F0F46F56C2Ca5def59fd673fF69495b7272Eb0); - (, PoolDirectory.Pool[] memory pools) = PoolDirectory(_poolDirectory).getActivePools(); - for (uint256 i = 0; i < pools.length; i++) { - ICErc20[] memory markets = IonicComptroller(pools[i].comptroller).getAllMarkets(); - for (uint256 j = 0; j < markets.length; j++) { - bool isPaused = IonicComptroller(pools[i].comptroller).borrowGuardianPaused(address(markets[j])); - assertEq(isPaused, false); - isPaused = IonicComptroller(pools[i].comptroller).mintGuardianPaused(address(markets[j])); - assertEq(isPaused, false); - } - } - vm.prank(pauseGuardian); - pauser.pauseAll(); - for (uint256 i = 0; i < pools.length; i++) { - ICErc20[] memory markets = IonicComptroller(pools[i].comptroller).getAllMarkets(); - for (uint256 j = 0; j < markets.length; j++) { - bool isPaused = IonicComptroller(pools[i].comptroller).borrowGuardianPaused(address(markets[j])); - assertEq(isPaused, true); - isPaused = IonicComptroller(pools[i].comptroller).mintGuardianPaused(address(markets[j])); - assertEq(isPaused, true); - } - } - } } diff --git a/contracts/test/config/BaseTest.t.sol b/contracts/test/config/BaseTest.t.sol index 292ed8f7..c691696e 100644 --- a/contracts/test/config/BaseTest.t.sol +++ b/contracts/test/config/BaseTest.t.sol @@ -21,7 +21,6 @@ abstract contract BaseTest is Test { uint128 constant LINEA_MAINNET = 59144; uint128 constant ZKEVM_MAINNET = 1101; uint128 constant MODE_MAINNET = 34443; - uint128 constant BASE_MAINNET = 8453; // taken from ERC1967Upgrade bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; From 43701f6e6171dd8c45935e443e66dbb861734ea8 Mon Sep 17 00:00:00 2001 From: amish kohli Date: Fri, 28 Jun 2024 21:52:21 +0530 Subject: [PATCH 2/2] deleted pyth-neon --- lib/pyth-neon | 1 - 1 file changed, 1 deletion(-) delete mode 160000 lib/pyth-neon diff --git a/lib/pyth-neon b/lib/pyth-neon deleted file mode 160000 index 7b4564e0..00000000 --- a/lib/pyth-neon +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 7b4564e0cdf529bad833bb95a821454939b6e63a