Skip to content

Commit

Permalink
Merge pull request #565 from VenusProtocol/develop
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
chechu authored Feb 11, 2025
2 parents ca1aec1 + 2d1aac0 commit eb51f8d
Show file tree
Hide file tree
Showing 26 changed files with 21,047 additions and 41 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ DEPLOYER_PRIVATE_KEY=
#ARCHIVE_NODE_basesepolia=https://sepolia.base.org
#ARCHIVE_NODE_basemainnet=https://open-platform.nodereal.io/<YOUR_KEY_HERE>/base
#ARCHIVE_NODE_unichainsepolia=https://unichain-sepolia.g.alchemy.com/v2/<YOUR_KEY_HERE>
#ARCHIVE_NODE_unichainmainnet=https://unichain-mainnet.g.alchemy.com/v2/<YOUR_KEY_HERE>

ETHERSCAN_API_KEY=
REPORT_GAS=
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:

- name: Export deployments
run: |
for NETWORK in bsctestnet bscmainnet ethereum sepolia opbnbtestnet opbnbmainnet arbitrumsepolia arbitrumone opsepolia opmainnet basesepolia basemainnet unichainsepolia; do
for NETWORK in bsctestnet bscmainnet ethereum sepolia opbnbtestnet opbnbmainnet arbitrumsepolia arbitrumone opsepolia opmainnet basesepolia basemainnet unichainsepolia unichainmainnet; do
EXPORT=true yarn hardhat export --network ${NETWORK} --export ./deployments/${NETWORK}.json
jq -M '{name, chainId, addresses: .contracts | map_values(.address)}' ./deployments/${NETWORK}.json > ./deployments/${NETWORK}_addresses.json
done
Expand Down
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
## [9.7.0-dev.2](https://github.com/VenusProtocol/venus-protocol/compare/v9.7.0-dev.1...v9.7.0-dev.2) (2025-02-11)


### Features

* add prime deployment on unichainmainnet ([1096270](https://github.com/VenusProtocol/venus-protocol/commit/1096270638447018002fceeb15ee19c8c3aa4340))
* updating deployment files ([3ea6b33](https://github.com/VenusProtocol/venus-protocol/commit/3ea6b336834ccaa98a6f3c4542a9e9eb59eb3ee3))
* updating deployment files ([cd9b9bd](https://github.com/VenusProtocol/venus-protocol/commit/cd9b9bd1ff00eb7ba784c957ac35ba106167c8b7))
* xvs vault on unichain ([c5213ab](https://github.com/VenusProtocol/venus-protocol/commit/c5213abc0b5d6379dc4297f780d07f04c1114078))

## [9.7.0-dev.1](https://github.com/VenusProtocol/venus-protocol/compare/v9.6.0...v9.7.0-dev.1) (2025-02-10)


### Features

* treasury deployment on unichain ([6e21ebc](https://github.com/VenusProtocol/venus-protocol/commit/6e21ebceb04d2d5363632dd95f043ef0a954adae))
* update dependencies ([6838200](https://github.com/VenusProtocol/venus-protocol/commit/6838200dbca67769e2eee1072676aa275a800dd4))
* updating deployment files ([8f8eb58](https://github.com/VenusProtocol/venus-protocol/commit/8f8eb58e5972e2b581ed16bc76058416955e0920))

## [9.6.0](https://github.com/VenusProtocol/venus-protocol/compare/v9.5.0...v9.6.0) (2025-02-07)


Expand Down
1 change: 1 addition & 0 deletions deploy/005-deploy-VTreasuryV8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
basesepolia: "0xdf3b635d2b535f906BB02abb22AED71346E36a00", // BASE SEPOLIA MULTISIG
basemainnet: "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C", // BASE MAINNET MULTISIG
unichainsepolia: "0x9831D3A641E8c7F082EEA75b8249c99be9D09a34", // UNICHAIN SEPOLIA MULTISIG
unichainmainnet: "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C", // UNICHAIN MAINNET MULTISIG
bscmainnet: await getTimelock(),
bsctestnet: await getTimelock(),
hardhat: deployer,
Expand Down
2 changes: 2 additions & 0 deletions deploy/009-configure-vaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
ethereum: 2_628_000,
basesepolia: 0, // time based deployment
basemainnet: 0, // time based deployment
unichainmainnet: 0, // time based deployment
hardhat: 100,
};

Expand All @@ -51,6 +52,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
bsctestnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
basesepolia: "0xdf3b635d2b535f906BB02abb22AED71346E36a00", // BASE SEPOLIA MULTISIG
basemainnet: "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C", // BASE MAINNET MULTISIG
unichainmainnet: "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C", // UNICHAIN MAINNET MULTISIG
hardhat: deployer,
};

Expand Down
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 eb51f8d

Please sign in to comment.