Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 1ef956d

Browse files
authored
Merge pull request #71 from ionicprotocol/submodfix
Submodfix
2 parents c29e88e + 43701f6 commit 1ef956d

File tree

3 files changed

+1
-29
lines changed

3 files changed

+1
-29
lines changed

contracts/test/GlobalPauser.t.sol

+1-27
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ contract GlobalPauserTest is BaseTest {
3636
pauser.pauseAll();
3737
}
3838

39-
function testPauseAllMode() public debuggingOnly forkAtBlock(MODE_MAINNET, 9269895) {
39+
function testPauseAll() public debuggingOnly forkAtBlock(MODE_MAINNET, 9269895) {
4040
(, PoolDirectory.Pool[] memory pools) = PoolDirectory(poolDirectory).getActivePools();
4141
for (uint256 i = 0; i < pools.length; i++) {
4242
ICErc20[] memory markets = IonicComptroller(pools[i].comptroller).getAllMarkets();
@@ -59,30 +59,4 @@ contract GlobalPauserTest is BaseTest {
5959
}
6060
}
6161
}
62-
63-
function testPauseAllBase() public debuggingOnly forkAtBlock(BASE_MAINNET, 15970403) {
64-
address _poolDirectory = 0xE1A3006be645a80F206311d9f18C866c204bA02f;
65-
pauser = GlobalPauser(0x48F0F46F56C2Ca5def59fd673fF69495b7272Eb0);
66-
(, PoolDirectory.Pool[] memory pools) = PoolDirectory(_poolDirectory).getActivePools();
67-
for (uint256 i = 0; i < pools.length; i++) {
68-
ICErc20[] memory markets = IonicComptroller(pools[i].comptroller).getAllMarkets();
69-
for (uint256 j = 0; j < markets.length; j++) {
70-
bool isPaused = IonicComptroller(pools[i].comptroller).borrowGuardianPaused(address(markets[j]));
71-
assertEq(isPaused, false);
72-
isPaused = IonicComptroller(pools[i].comptroller).mintGuardianPaused(address(markets[j]));
73-
assertEq(isPaused, false);
74-
}
75-
}
76-
vm.prank(pauseGuardian);
77-
pauser.pauseAll();
78-
for (uint256 i = 0; i < pools.length; i++) {
79-
ICErc20[] memory markets = IonicComptroller(pools[i].comptroller).getAllMarkets();
80-
for (uint256 j = 0; j < markets.length; j++) {
81-
bool isPaused = IonicComptroller(pools[i].comptroller).borrowGuardianPaused(address(markets[j]));
82-
assertEq(isPaused, true);
83-
isPaused = IonicComptroller(pools[i].comptroller).mintGuardianPaused(address(markets[j]));
84-
assertEq(isPaused, true);
85-
}
86-
}
87-
}
8862
}

contracts/test/config/BaseTest.t.sol

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ abstract contract BaseTest is Test {
2121
uint128 constant LINEA_MAINNET = 59144;
2222
uint128 constant ZKEVM_MAINNET = 1101;
2323
uint128 constant MODE_MAINNET = 34443;
24-
uint128 constant BASE_MAINNET = 8453;
2524

2625
// taken from ERC1967Upgrade
2726
bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

lib/pyth-neon

-1
This file was deleted.

0 commit comments

Comments
 (0)