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