Skip to content

Commit

Permalink
Merge pull request #563 from VenusProtocol/feat/VEN-3067
Browse files Browse the repository at this point in the history
[VEN-3067]: prime deployment on unichainmainnet
  • Loading branch information
chechu authored Feb 11, 2025
2 parents ea5b520 + 3ea6b33 commit 83ded93
Show file tree
Hide file tree
Showing 11 changed files with 16,314 additions and 71 deletions.
6 changes: 5 additions & 1 deletion deploy/012-deploy-prime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
arbitrumone: NINETY_DAYS,
zksyncmainnet: NINETY_DAYS,
opmainnet: NINETY_DAYS,
unichainmainnet: NINETY_DAYS,
};

const xVSVaultPoolId: Config = {
Expand All @@ -52,6 +53,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
hardhat: 0,
basesepolia: 0,
basemainnet: 0,
unichainmainnet: 0,
};

const blocksPerYear: Config = {
Expand All @@ -66,6 +68,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
unichainsepolia: 0, // time based contracts
basesepolia: 0, // time based contracts
basemainnet: 0, // time based contracts
unichainmainnet: 0,
bscmainnet: 10_512_000,
ethereum: 2_628_000,
hardhat: 100,
Expand All @@ -77,7 +80,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const xvsVaultAlphaNumerator = 1;
const xvsVaultAlphaDenominator = 2;
const loopsLimit = 20;
const isTimeBased = false; // revise this value when deploying on L2s
const isTimeBased = blocksPerYear[network.name] === 0;

const corePoolAddress = await getContractAddressOrNullAddress(deployments, "Unitroller");
const wrappedNativeToken = await getContractAddressOrNullAddress(deployments, "WBNB");
Expand All @@ -101,6 +104,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
unichainsepolia: "0x9831D3A641E8c7F082EEA75b8249c99be9D09a34", // UNICHAIN SEPOLIA MULTISIG
basesepolia: "0xdf3b635d2b535f906BB02abb22AED71346E36a00", // BASE SEPOLIA MULTISIG
basemainnet: "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C", // BASE MAINNET MULTISIG
unichainmainnet: "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C", // UNICHAIN MAINNET MULTISIG
bscmainnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
bsctestnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
};
Expand Down
1 change: 1 addition & 0 deletions deploy/013-configure-prime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
unichainsepolia: "0x9831D3A641E8c7F082EEA75b8249c99be9D09a34", // UNICHAIN SEPOLIA MULTISIG
basesepolia: "0xdf3b635d2b535f906BB02abb22AED71346E36a00", // BASE SEPOLIA MULTISIG
basemainnet: "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C", // BASE MAINNET MULTISIG
unichainmainnet: "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C", // UNICHAIN MAINNET MULTISIG
bscmainnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
bsctestnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
};
Expand Down
Loading

0 comments on commit 83ded93

Please sign in to comment.