Skip to content

Commit 5468dc9

Browse files
committed
fix: deployment scripts and updated deployment files
1 parent 34ca45a commit 5468dc9

File tree

4 files changed

+498261
-5
lines changed

4 files changed

+498261
-5
lines changed

deploy/002-risk-fund-converter.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { parseUnits } from "ethers/lib/utils";
2-
import { ethers } from "hardhat";
2+
import { ethers, network } from "hardhat";
33
import { DeployFunction } from "hardhat-deploy/types";
44
import { HardhatRuntimeEnvironment } from "hardhat/types";
55

@@ -20,12 +20,18 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
2020
const wBNBAddress = (await ethers.getContract("WBNB")).address;
2121
const riskFundAddress = (await ethers.getContract("RiskFund")).address;
2222
const poolRegistryAddress = (await ethers.getContract("PoolRegistry")).address;
23-
const poolStableCoinAddress = (await ethers.getContract("Comptroller_StableCoins")).address;
2423
const poolDeFiAddress = (await ethers.getContract("Comptroller_DeFi")).address;
2524
const poolGameFiAddress = (await ethers.getContract("Comptroller_GameFi")).address;
2625
const poolTronAddress = (await ethers.getContract("Comptroller_Tron")).address;
2726
const timelockAddress = (await ethers.getContract("NormalTimelock")).address;
2827

28+
let poolStableCoinAddress;
29+
if (network.name === "bscmainnet") {
30+
poolStableCoinAddress = (await ethers.getContract("Comptroller_Stablecoins")).address;
31+
} else {
32+
poolStableCoinAddress = (await ethers.getContract("Comptroller_StableCoins")).address;
33+
}
34+
2935
const comptrollers = [corePoolAddress, poolStableCoinAddress, poolDeFiAddress, poolGameFiAddress, poolTronAddress];
3036
const assets = [[usdtAddress, btcbAddress, ethAddress], [usdtAddress], [usdtAddress], [usdtAddress], [usdtAddress]];
3137
const values = [[true, true, true], [true], [true], [true], [true]];

0 commit comments

Comments
 (0)