mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix: load the EmergencyAdmin before pausing the pool at 2_lending_pool.ts deployment script
This commit is contained in:
parent
60f0488aa9
commit
fa1f1349b7
|
@ -15,7 +15,12 @@ import {
|
||||||
getLendingPoolConfiguratorProxy,
|
getLendingPoolConfiguratorProxy,
|
||||||
} from '../../helpers/contracts-getters';
|
} from '../../helpers/contracts-getters';
|
||||||
import { HardhatRuntimeEnvironment } from 'hardhat/types';
|
import { HardhatRuntimeEnvironment } from 'hardhat/types';
|
||||||
import { loadPoolConfig, ConfigNames } from '../../helpers/configuration';
|
import {
|
||||||
|
loadPoolConfig,
|
||||||
|
ConfigNames,
|
||||||
|
getGenesisPoolAdmin,
|
||||||
|
getEmergencyAdmin,
|
||||||
|
} from '../../helpers/configuration';
|
||||||
|
|
||||||
task('full:deploy-lending-pool', 'Deploy lending pool for dev enviroment')
|
task('full:deploy-lending-pool', 'Deploy lending pool for dev enviroment')
|
||||||
.addFlag('verify', 'Verify contracts at Etherscan')
|
.addFlag('verify', 'Verify contracts at Etherscan')
|
||||||
|
@ -70,9 +75,9 @@ task('full:deploy-lending-pool', 'Deploy lending pool for dev enviroment')
|
||||||
eContractid.LendingPoolConfigurator,
|
eContractid.LendingPoolConfigurator,
|
||||||
lendingPoolConfiguratorProxy.address
|
lendingPoolConfiguratorProxy.address
|
||||||
);
|
);
|
||||||
|
const admin = await DRE.ethers.getSigner(await getEmergencyAdmin(poolConfig));
|
||||||
// Pause market during deployment
|
// Pause market during deployment
|
||||||
await waitForTx(await lendingPoolConfiguratorProxy.setPoolPause(true));
|
await waitForTx(await lendingPoolConfiguratorProxy.connect(admin).setPoolPause(true));
|
||||||
|
|
||||||
// Deploy deployment helpers
|
// Deploy deployment helpers
|
||||||
await deployStableAndVariableTokensHelper(
|
await deployStableAndVariableTokensHelper(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user