Skip to content

Commit fa1f134

Browse files
committed
fix: load the EmergencyAdmin before pausing the pool at 2_lending_pool.ts deployment script
1 parent 60f0488 commit fa1f134

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tasks/full/2_lending_pool.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ import {
1515
getLendingPoolConfiguratorProxy,
1616
} from '../../helpers/contracts-getters';
1717
import { HardhatRuntimeEnvironment } from 'hardhat/types';
18-
import { loadPoolConfig, ConfigNames } from '../../helpers/configuration';
18+
import {
19+
loadPoolConfig,
20+
ConfigNames,
21+
getGenesisPoolAdmin,
22+
getEmergencyAdmin,
23+
} from '../../helpers/configuration';
1924

2025
task('full:deploy-lending-pool', 'Deploy lending pool for dev enviroment')
2126
.addFlag('verify', 'Verify contracts at Etherscan')
@@ -70,9 +75,9 @@ task('full:deploy-lending-pool', 'Deploy lending pool for dev enviroment')
7075
eContractid.LendingPoolConfigurator,
7176
lendingPoolConfiguratorProxy.address
7277
);
73-
78+
const admin = await DRE.ethers.getSigner(await getEmergencyAdmin(poolConfig));
7479
// Pause market during deployment
75-
await waitForTx(await lendingPoolConfiguratorProxy.setPoolPause(true));
80+
await waitForTx(await lendingPoolConfiguratorProxy.connect(admin).setPoolPause(true));
7681

7782
// Deploy deployment helpers
7883
await deployStableAndVariableTokensHelper(

0 commit comments

Comments
 (0)