@@ -36,7 +36,7 @@ contract GlobalPauserTest is BaseTest {
36
36
pauser.pauseAll ();
37
37
}
38
38
39
- function testPauseAllMode () public debuggingOnly forkAtBlock (MODE_MAINNET, 9269895 ) {
39
+ function testPauseAll () public debuggingOnly forkAtBlock (MODE_MAINNET, 9269895 ) {
40
40
(, PoolDirectory.Pool[] memory pools ) = PoolDirectory (poolDirectory).getActivePools ();
41
41
for (uint256 i = 0 ; i < pools.length ; i++ ) {
42
42
ICErc20[] memory markets = IonicComptroller (pools[i].comptroller).getAllMarkets ();
@@ -59,30 +59,4 @@ contract GlobalPauserTest is BaseTest {
59
59
}
60
60
}
61
61
}
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
- }
88
62
}
0 commit comments