COMMENTED OUT MATIC-BREAKING code

This commit is contained in:
Zer0dot 2021-02-19 21:58:39 -05:00
parent f9f29b312c
commit 1c16f9f074

View File

@ -23,6 +23,8 @@ import {
deployDelegationAwareATokenImpl,
deployGenericAToken,
deployGenericATokenImpl,
deployGenericStableDebtToken,
deployGenericVariableDebtToken,
deployStableDebtToken,
deployVariableDebtToken,
} from './contracts-deployments';
@ -102,17 +104,20 @@ export const initReservesByHelper = async (
let stableDebtTokenImplementationAddress = "";
let variableDebtTokenImplementationAddress = "";
const tx1 = await waitForTx(
await stableAndVariableDeployer.initDeployment([ZERO_ADDRESS], ["1"])
);
tx1.events?.forEach((event, index) => {
stableDebtTokenImplementationAddress = event?.args?.stableToken;
variableDebtTokenImplementationAddress = event?.args?.variableToken;
rawInsertContractAddressInDb(`stableDebtTokenImpl`, stableDebtTokenImplementationAddress);
rawInsertContractAddressInDb(`variableDebtTokenImpl`, variableDebtTokenImplementationAddress);
});
// NOT WORKING ON MATIC
// const tx1 = await waitForTx(
// await stableAndVariableDeployer.initDeployment([ZERO_ADDRESS], ["1"])
// );
// console.log(tx1.events);
// tx1.events?.forEach((event, index) => {
// stableDebtTokenImplementationAddress = event?.args?.stableToken;
// variableDebtTokenImplementationAddress = event?.args?.variableToken;
// rawInsertContractAddressInDb(`stableDebtTokenImpl`, stableDebtTokenImplementationAddress);
// rawInsertContractAddressInDb(`variableDebtTokenImpl`, variableDebtTokenImplementationAddress);
// });
//gasUsage = gasUsage.add(tx1.gasUsed);
stableDebtTokenImplementationAddress = await (await deployGenericStableDebtToken()).address;
variableDebtTokenImplementationAddress = await (await deployGenericVariableDebtToken()).address;
const aTokenImplementation = await deployGenericATokenImpl(verify);
aTokenImplementationAddress = aTokenImplementation.address;