Updated migration script

This commit is contained in:
The3D 2020-11-28 13:32:13 +01:00
parent c9875f0a8f
commit dcc60f5966

View File

@ -17,8 +17,7 @@ import {
import { tEthereumAddress, AavePools, eContractid } from '../../helpers/types';
import { waitForTx, filterMapBy } from '../../helpers/misc-utils';
import {
enableReservesToBorrowByHelper,
enableReservesAsCollateralByHelper,
configureReservesByHelper,
initReservesByHelper,
} from '../../helpers/init-helpers';
import { getAllTokenAddresses } from '../../helpers/mock-helpers';
@ -61,13 +60,7 @@ task('dev:initialize-lending-pool', 'Initialize lending pool configuration.')
ZERO_ADDRESS,
verify
);
await enableReservesToBorrowByHelper(
reservesParams,
protoPoolReservesAddresses,
testHelpers,
admin
);
await enableReservesAsCollateralByHelper(
await configureReservesByHelper(
reservesParams,
protoPoolReservesAddresses,
testHelpers,