Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VEN-3067]: prime deployment on unichainmainnet #563

Merged
merged 4 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading