@venusprotocol/isolated-pools 2.2.0 → 2.3.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,6 +15,7 @@ const func = async function (hre) {
15
15
  const { deploy } = deployments;
16
16
  const { deployer } = await getNamedAccounts();
17
17
  const { tokensConfig, poolConfig, preconfiguredAddresses } = await (0, deploymentConfig_1.getConfig)(hre.network.name);
18
+ const protocolShareReserve = await deployments.getOrNull("ProtocolShareReserve");
18
19
  const accessControlManagerAddress = await (0, deploymentUtils_1.toAddress)(preconfiguredAddresses.AccessControlManager || "AccessControlManager", hre);
19
20
  // VToken Beacon
20
21
  const vTokenImpl = await deploy("VTokenImpl", {
@@ -89,7 +90,7 @@ const func = async function (hre) {
89
90
  accessControlManagerAddress,
90
91
  [
91
92
  preconfiguredAddresses.Shortfall || ADDRESS_ONE,
92
- preconfiguredAddresses.ProtocolShareReserve || treasuryAddress,
93
+ protocolShareReserve ? protocolShareReserve.address : treasuryAddress,
93
94
  ],
94
95
  reserveFactor,
95
96
  ];
@@ -232,7 +232,9 @@ const config = {
232
232
  bsctestnet: [
233
233
  "node_modules/@venusprotocol/oracle/deployments/bsctestnet",
234
234
  "node_modules/@venusprotocol/venus-protocol/deployments/bsctestnet",
235
+ "node_modules/@venusprotocol/protocol-reserve/deployments/bsctestnet",
235
236
  ],
237
+ bscmainnet: ["node_modules/@venusprotocol/protocol-reserve/deployments/bscmainnet"],
236
238
  },
237
239
  },
238
240
  };