Skip to content

Commit

Permalink
Merge pull request #525 from VenusProtocol/develop
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
chechu authored Oct 10, 2024
2 parents 9730071 + 938c9d2 commit b59fe30
Show file tree
Hide file tree
Showing 50 changed files with 41,402 additions and 491 deletions.
6 changes: 2 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ DEPLOYER_PRIVATE_KEY=
#ARCHIVE_NODE_opbnbmainnet=https://opbnb-mainnet.nodereal.io/v1/<YOUR_KEY_HERE>
#ARCHIVE_NODE_arbitrumone=https://open-platform.nodereal.io/<YOUR_KEY_HERE>/arbitrum-nitro/
#ARCHIVE_NODE_arbitrumsepolia=https://sepolia-rollup.arbitrum.io/rpc
#ARCHIVE_NODE_xlayertestnet=https://rpc.ankr.com/xlayer_testnet/<YOUR_KEY_HERE>
#ARCHIVE_NODE_xlayermainnet=https://rpc.ankr.com/xlayer<YOUR_KEY_HERE>
#ARCHIVE_NODE_zksyncsepolia=https://zksync-sepolia.g.alchemy.com/v2/<YOUR_KEY_HERE>
#ARCHIVE_NODE_zksyncmainnet=https://open-platform.nodereal.io/<YOUR_KEY_HERE>/zksync
#ARCHIVE_NODE_opsepolia="https://sepolia.optimism.io"
#ARCHIVE_NODE_opmainnet="https://opt-mainnet.nodereal.io/v1/<YOUR_KEY_HERE>"
#ARCHIVE_NODE_opsepolia=https://sepolia.optimism.io
#ARCHIVE_NODE_opmainnet=https://opt-mainnet.nodereal.io/v1/<YOUR_KEY_HERE>


ETHERSCAN_API_KEY=
Expand Down
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 xlayertestnet xlayermainnet opsepolia opmainnet; do
for NETWORK in bsctestnet bscmainnet ethereum sepolia opbnbtestnet opbnbmainnet arbitrumsepolia arbitrumone opsepolia opmainnet; 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
60 changes: 60 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,63 @@
## [9.3.0-dev.6](https://github.com/VenusProtocol/venus-protocol/compare/v9.3.0-dev.5...v9.3.0-dev.6) (2024-10-10)


### Features

* deployment files for plp and prime on opmainnet ([8dffc68](https://github.com/VenusProtocol/venus-protocol/commit/8dffc6851d2849ec651126c80077e840cec85a69))
* updating deployment files ([a09e96b](https://github.com/VenusProtocol/venus-protocol/commit/a09e96bb6e1d15d49e439b90fb7875cf85072af2))
* updating deployment files ([8436f6d](https://github.com/VenusProtocol/venus-protocol/commit/8436f6dcee8714e365f219aa1baf1ec02328df0f))
* use packages that include the Optimism deployment ([75a772d](https://github.com/VenusProtocol/venus-protocol/commit/75a772ddc5149424e4074f0787890ef4aaa7bb82))

## [9.3.0-dev.5](https://github.com/VenusProtocol/venus-protocol/compare/v9.3.0-dev.4...v9.3.0-dev.5) (2024-09-27)


### Features

* deployment files of xvs vault on op mainnet ([22f00d4](https://github.com/VenusProtocol/venus-protocol/commit/22f00d4e48fd58638abfe85da6248e92c9c9d018))
* updating deployment files ([c45ed5d](https://github.com/VenusProtocol/venus-protocol/commit/c45ed5d32201b39db7fda84a4bd5bf15f882ef6f))

## [9.3.0-dev.4](https://github.com/VenusProtocol/venus-protocol/compare/v9.3.0-dev.3...v9.3.0-dev.4) (2024-09-20)


### Features

* deployment files for the treasury on op mainnet ([7a48028](https://github.com/VenusProtocol/venus-protocol/commit/7a48028ef6a3d1260c9e05e1cd7fe545a392cb58))
* updating deployment files ([2d182dc](https://github.com/VenusProtocol/venus-protocol/commit/2d182dce0e7af2b5f24dd63c01b6e4b1449c59b0))

## [9.3.0-dev.3](https://github.com/VenusProtocol/venus-protocol/compare/v9.3.0-dev.2...v9.3.0-dev.3) (2024-09-17)


### Features

* deployment files for the prime and plp contracts on opsepolia ([29a293b](https://github.com/VenusProtocol/venus-protocol/commit/29a293b4ed25ddbf482d1badda8c808ce6024008))
* updating deployment files ([22bb4d4](https://github.com/VenusProtocol/venus-protocol/commit/22bb4d45712a60b918ea11d3248a8e74b6f3cc4e))

## [9.3.0-dev.2](https://github.com/VenusProtocol/venus-protocol/compare/v9.3.0-dev.1...v9.3.0-dev.2) (2024-09-17)


### Features

* update IR of VBNB ([d334a3d](https://github.com/VenusProtocol/venus-protocol/commit/d334a3d507c577dc9938535dcfad944911a21ee2))
* updating deployment files ([8255e99](https://github.com/VenusProtocol/venus-protocol/commit/8255e99b737010e756488cd4c48883111a7a1d64))


### Bug Fixes

* ci checks ([e3e6644](https://github.com/VenusProtocol/venus-protocol/commit/e3e66440a3b50e0b389db6ff053fe40280c01e40))

## [9.3.0-dev.1](https://github.com/VenusProtocol/venus-protocol/compare/v9.2.0...v9.3.0-dev.1) (2024-09-13)


### Features

* updating deployment files ([e1bc769](https://github.com/VenusProtocol/venus-protocol/commit/e1bc769e9462565066828cc5e01f2042f8ccd753))
* updating deployment files ([026d270](https://github.com/VenusProtocol/venus-protocol/commit/026d270cf3ee582d6544bc6a07124cd069e27d41))


### Bug Fixes

* pr comment ([52a4c06](https://github.com/VenusProtocol/venus-protocol/commit/52a4c0651569198c5be379ee70e8d612050e7702))

## [9.2.0](https://github.com/VenusProtocol/venus-protocol/compare/v9.1.0...v9.2.0) (2024-09-10)


Expand Down
2 changes: 1 addition & 1 deletion deploy/002-interest-rate-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
from: deployer,
log: true,
autoMine: true,
args: [0, "225000000000000000", "6800000000000000000", "700000000000000000"],
args: [0, "225000000000000000", "6800000000000000000", "500000000000000000"],
});
}
};
Expand Down
2 changes: 1 addition & 1 deletion deploy/005-deploy-VTreasuryV8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
opbnbmainnet: "0xC46796a21a3A9FAB6546aF3434F2eBfFd0604207", // OPBNBMAINNET MULTISIG
arbitrumsepolia: "0x1426A5Ae009c4443188DA8793751024E358A61C2", // ARBITRUM_SEPOLIA MULTISIG
arbitrumone: "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0", // ARBITRUM_ONE MULTISIG
xlayertestnet: "0x5961449d63149035aCfC0714D5155f24C9819004", // XLAYER TESTNET MULTISIG
zksyncsepolia: "0xa2f83de95E9F28eD443132C331B6a9C9B7a9F866", // ZKSYNC SEPOLIA MULTISIG
zksyncmainnet: "0x751Aa759cfBB6CE71A43b48e40e1cCcFC66Ba4aa", // ZKSYNC MAINNET MULTISIG
opsepolia: "0xd57365EE4E850e881229e2F8Aa405822f289e78d", // OPSEPOLIA MULTISIG
opmainnet: "0x2e94dd14E81999CdBF5deDE31938beD7308354b3", // OPMAINNET MULTISIG
bscmainnet: await getTimelock(),
bsctestnet: await getTimelock(),
hardhat: deployer,
Expand Down
4 changes: 4 additions & 0 deletions deploy/009-configure-vaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
bsctestnet: 10_512_000, // 3 sec per block
sepolia: 2_628_000, // 12 sec per block
arbitrumsepolia: 0, // time based deployment
opsepolia: 0, // time based deployment
opmainnet: 0, // time based deployment
arbitrumone: 0, // time based deployment
zksyncsepolia: 0, // time based deployment
zksyncmainnet: 0, // time based deployment
Expand All @@ -39,6 +41,8 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
arbitrumone: "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0", // ARBITRUM ONE MULTISIG
zksyncsepolia: "0xa2f83de95E9F28eD443132C331B6a9C9B7a9F866", // ZKSYNC SEPOLIA MULTISIG
zksyncmainnet: "0x751Aa759cfBB6CE71A43b48e40e1cCcFC66Ba4aa", // ZKSYNC MAINNET MULTISIG
opsepolia: "0xd57365EE4E850e881229e2F8Aa405822f289e78d", // OPSEPOLIA MULTISIG
opmainnet: "0x2e94dd14E81999CdBF5deDE31938beD7308354b3", // OPMAINNET MULTISIG
bscmainnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
bsctestnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
hardhat: deployer,
Expand Down
8 changes: 8 additions & 0 deletions deploy/012-deploy-prime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
sepolia: TEN_MINUTES,
arbitrumsepolia: TEN_MINUTES,
zksyncsepolia: TEN_MINUTES,
opsepolia: TEN_MINUTES,
bscmainnet: NINETY_DAYS,
ethereum: NINETY_DAYS,
arbitrumone: NINETY_DAYS,
zksyncmainnet: NINETY_DAYS,
opmainnet: NINETY_DAYS,
};

const xVSVaultPoolId: Config = {
Expand All @@ -41,6 +43,8 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
arbitrumone: 0,
zksyncsepolia: 0,
zksyncmainnet: 0,
opsepolia: 0,
opmainnet: 0,
hardhat: 0,
};

Expand All @@ -51,6 +55,8 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
arbitrumone: 0, // time based contracts
zksyncsepolia: 0, // time based contracts
zksyncmainnet: 0, // time based contracts
opsepolia: 0, // time based contracts
opmainnet: 0, // time based contracts
bscmainnet: 10_512_000,
ethereum: 2_628_000,
hardhat: 100,
Expand Down Expand Up @@ -81,6 +87,8 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
arbitrumone: "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0", // ARBITRUM ONE MULTISIG
zksyncsepolia: "0xa2f83de95E9F28eD443132C331B6a9C9B7a9F866", // ZKSYNC SEPOLIA MULTISIG
zksyncmainnet: "0x751Aa759cfBB6CE71A43b48e40e1cCcFC66Ba4aa", // ZKSYNC MAINNET MULTISIG
opsepolia: "0xd57365EE4E850e881229e2F8Aa405822f289e78d", // OPSEPOLIA MULTISIG
opmainnet: "0x2e94dd14E81999CdBF5deDE31938beD7308354b3", // OPMAINNET MULTISIG
bscmainnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
bsctestnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
};
Expand Down
2 changes: 2 additions & 0 deletions deploy/013-configure-prime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
arbitrumone: "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0", // ARBITRUM ONE MULTISIG
zksyncsepolia: "0xa2f83de95E9F28eD443132C331B6a9C9B7a9F866", // ZKSYNC SEPOLIA MULTISIG
zksyncmainnet: "0x751Aa759cfBB6CE71A43b48e40e1cCcFC66Ba4aa", // ZKSYNC MAINNET MULTISIG
opsepolia: "0xd57365EE4E850e881229e2F8Aa405822f289e78d", // OPSEPOLIA MULTISIG
opmainnet: "0x2e94dd14E81999CdBF5deDE31938beD7308354b3", // OPMAINNET MULTISIG
bscmainnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
bsctestnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
};
Expand Down
2 changes: 1 addition & 1 deletion deployments/bscmainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -6498,7 +6498,7 @@
]
},
"InterestRateModelVBNB": {
"address": "0xe5be8D9f4697dD264e488efD4b29c8CC31616fa5",
"address": "0xDb8347b96c94Be24B9c077A4CDDAAD074F6480cf",
"abi": [
{
"inputs": [
Expand Down
48 changes: 24 additions & 24 deletions deployments/bscmainnet/InterestRateModelVBNB.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deployments/bscmainnet_addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"DefaultProxyAdmin": "0x6beb6D2695B67FEb73ad4f172E8E2975497187e4",
"ETH": "0x2170Ed0880ac9A755fd29B2688956BD959F933F8",
"FIL": "0x0D8Ce2A99Bb6e3B7Db580eD848240e4a0F9aE153",
"InterestRateModelVBNB": "0xe5be8D9f4697dD264e488efD4b29c8CC31616fa5",
"InterestRateModelVBNB": "0xDb8347b96c94Be24B9c077A4CDDAAD074F6480cf",
"JumpRateModel_base0bps_slope10000bps_jump25000bps_kink8000bps": "0x9e8fbACBfbD811Fc561af3Af7df8e38dEd4c52F3",
"JumpRateModel_base0bps_slope10000bps_jump50000bps_kink8000bps": "0x958F4C84d3ad523Fa9936Dc465A123C7AD43D69B",
"JumpRateModel_base0bps_slope1000bps_jump25000bps_kink8000bps": "0x62A8919C4C413fd4F9aef7348540Bc4B1b5CC805",
Expand Down
Loading

0 comments on commit b59fe30

Please sign in to comment.