@venusprotocol/isolated-pools 2.8.0-dev.2 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deployments/ethereum/RewardsDistributor_Liquid Staked ETH_2.json +1270 -0
- package/deployments/ethereum/RewardsDistributor_Liquid Staked ETH_2_Proxy.json +277 -0
- package/deployments/ethereum/VToken_vweETH_LiquidStakedETH.json +257 -0
- package/deployments/ethereum/solcInputs/556e7926402a9f7d641047851d56b7a7.json +181 -0
- package/deployments/ethereum.json +1355 -0
- package/deployments/ethereum_addresses.json +3 -0
- package/deployments/sepolia/JumpRateModelV2_base0bps_slope9000bps_jump7500bps_kink4500bps.json +519 -0
- package/deployments/sepolia/MockeETH.json +458 -0
- package/deployments/sepolia/MockweETH.json +458 -0
- package/deployments/sepolia/RewardsDistributor_Liquid Staked ETH_2.json +1270 -0
- package/deployments/sepolia/RewardsDistributor_Liquid Staked ETH_2_Proxy.json +277 -0
- package/deployments/sepolia/VToken_vweETH_LiquidStakedETH.json +257 -0
- package/deployments/sepolia/solcInputs/4ec1992e5565110adfbc26c502822e5b.json +184 -0
- package/deployments/sepolia/solcInputs/556e7926402a9f7d641047851d56b7a7.json +181 -0
- package/deployments/sepolia/solcInputs/aff45dfa415c2a71912dfa176e1c386c.json +342 -0
- package/deployments/sepolia.json +4015 -1723
- package/deployments/sepolia_addresses.json +6 -0
- package/dist/deploy/009-deploy-vtokens.js +24 -2
- package/dist/deploy/010-deploy-reward-distributors.js +4 -0
- package/dist/deployments/ethereum.json +1355 -0
- package/dist/deployments/sepolia.json +4015 -1723
- package/dist/helpers/deploymentConfig.js +76 -0
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"JumpRateModelV2_base0bps_slope450bps_jump8000bps_kink8000bps": "0xe948BBE16a846988A501A33Fb6A82Af4E2f231aE",
|
|
14
14
|
"JumpRateModelV2_base0bps_slope500bps_jump8000bps_kink7500bps": "0x1A9ca9032C7ee7335736fCaa5e8fb62b283538da",
|
|
15
15
|
"JumpRateModelV2_base0bps_slope700bps_jump8000bps_kink8000bps": "0xA03205bC635A772E533E7BE36b5701E331a70ea3",
|
|
16
|
+
"JumpRateModelV2_base0bps_slope9000bps_jump7500bps_kink4500bps": "0xf5EA67C92EF40b948EF672DE5fb913237A880A9E",
|
|
16
17
|
"JumpRateModelV2_base0bps_slope900bps_jump7500bps_kink4500bps": "0x1b821241f5E3f3AecBeE29901BeE07f5a264915f",
|
|
17
18
|
"JumpRateModelV2_base200bps_slope1500bps_jump30000bps_kink4500bps": "0x710F4044007a0e72e54626394462dB57d2d8479F",
|
|
18
19
|
"JumpRateModelV2_base200bps_slope2000bps_jump30000bps_kink4500bps": "0xaf5feAbe347BE5DF603CE63e45155bDb8049C78c",
|
|
@@ -21,6 +22,8 @@
|
|
|
21
22
|
"MockUSDT": "0x8d412FD0bc5d826615065B931171Eed10F5AF266",
|
|
22
23
|
"MockWBTC": "0x92A2928f5634BEa89A195e7BeCF0f0FEEDAB885b",
|
|
23
24
|
"MockcrvUSD": "0x36421d873abCa3E2bE6BB3c819C0CF26374F63b6",
|
|
25
|
+
"MockeETH": "0x0012875a7395a293Adfc9b5cDC2Cfa352C4cDcD3",
|
|
26
|
+
"MockweETH": "0x3b8b6E96e57f0d1cD366AaCf4CcC68413aF308D0",
|
|
24
27
|
"NativeTokenGateway_vWETH_Core": "0xb8fD67f215117FADeF06447Af31590309750529D",
|
|
25
28
|
"NativeTokenGateway_vWETH_LiquidStakedETH": "0x1FD30e761C3296fE36D9067b1e398FD97B4C0407",
|
|
26
29
|
"PoolLens": "0xa78e0D276203290eB0Be7697104379e14c90698a",
|
|
@@ -40,6 +43,8 @@
|
|
|
40
43
|
"RewardsDistributor_Liquid Staked ETH_0_Proxy": "0x4597B9287fE0DF3c5513D66886706E0719bD270f",
|
|
41
44
|
"RewardsDistributor_Liquid Staked ETH_1": "0xec594364d2B7eB3678f351Ac632cC71E718E0F89",
|
|
42
45
|
"RewardsDistributor_Liquid Staked ETH_1_Proxy": "0xec594364d2B7eB3678f351Ac632cC71E718E0F89",
|
|
46
|
+
"RewardsDistributor_Liquid Staked ETH_2": "0x92e8E3C202093A495e98C10f9fcaa5Abe288F74A",
|
|
47
|
+
"RewardsDistributor_Liquid Staked ETH_2_Proxy": "0x92e8E3C202093A495e98C10f9fcaa5Abe288F74A",
|
|
43
48
|
"VTokenBeacon": "0x0463a7E5221EAE1990cEddB51A5821a68cdA6008",
|
|
44
49
|
"VTokenImpl": "0x558083c8Ca93e42F5c0FE7e8c5FC49e9c0d94E14",
|
|
45
50
|
"VToken_vCRV_Core": "0x121E3be152F283319310D807ed847E8b98319C1e",
|
|
@@ -54,6 +59,7 @@
|
|
|
54
59
|
"VToken_vcrvUSD_Core": "0xA09cFAd2e138fe6d8FF62df803892cbCb79ED082",
|
|
55
60
|
"VToken_vcrvUSD_Curve": "0xc7be132027e191636172798B933202E0f9CAD548",
|
|
56
61
|
"VToken_vcrvUSD_Stablecoins": "0x9C5e7a3B4db931F07A6534f9e44100DDDc78c408",
|
|
62
|
+
"VToken_vweETH_LiquidStakedETH": "0x30c31bA6f4652B548fe7a142A949987c3f3Bf80b",
|
|
57
63
|
"VToken_vwstETH_LiquidStakedETH": "0x0a95088403229331FeF1EB26a11F9d6C8E73f23D"
|
|
58
64
|
}
|
|
59
65
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const _001_psr_1 = __importDefault(require("@venusprotocol/protocol-reserve/dist/deploy/001-psr"));
|
|
3
7
|
const ethers_1 = require("ethers");
|
|
4
8
|
const utils_1 = require("ethers/lib/utils");
|
|
5
9
|
const hardhat_1 = require("hardhat");
|
|
@@ -23,6 +27,7 @@ const func = async function (hre) {
|
|
|
23
27
|
args: [],
|
|
24
28
|
log: true,
|
|
25
29
|
autoMine: true,
|
|
30
|
+
skipIfAlreadyDeployed: true,
|
|
26
31
|
});
|
|
27
32
|
const vTokenBeacon = await deploy("VTokenBeacon", {
|
|
28
33
|
contract: "UpgradeableBeacon",
|
|
@@ -30,6 +35,7 @@ const func = async function (hre) {
|
|
|
30
35
|
args: [vTokenImpl.address],
|
|
31
36
|
log: true,
|
|
32
37
|
autoMine: true,
|
|
38
|
+
skipIfAlreadyDeployed: true,
|
|
33
39
|
});
|
|
34
40
|
const poolsWithUnregisteredVTokens = await (0, deploymentUtils_1.getUnregisteredVTokens)(poolConfig, hre);
|
|
35
41
|
for (const pool of poolsWithUnregisteredVTokens) {
|
|
@@ -64,6 +70,7 @@ const func = async function (hre) {
|
|
|
64
70
|
],
|
|
65
71
|
log: true,
|
|
66
72
|
autoMine: true,
|
|
73
|
+
skipIfAlreadyDeployed: true,
|
|
67
74
|
});
|
|
68
75
|
rateModelAddress = result.address;
|
|
69
76
|
}
|
|
@@ -77,6 +84,7 @@ const func = async function (hre) {
|
|
|
77
84
|
args: [BLOCKS_PER_YEAR, baseRatePerYear, multiplierPerYear],
|
|
78
85
|
log: true,
|
|
79
86
|
autoMine: true,
|
|
87
|
+
skipIfAlreadyDeployed: true,
|
|
80
88
|
});
|
|
81
89
|
rateModelAddress = result.address;
|
|
82
90
|
}
|
|
@@ -84,7 +92,20 @@ const func = async function (hre) {
|
|
|
84
92
|
const VToken = await hardhat_1.ethers.getContractFactory("VToken");
|
|
85
93
|
const underlyingDecimals = Number(await tokenContract.decimals());
|
|
86
94
|
const vTokenDecimals = 8;
|
|
87
|
-
|
|
95
|
+
let protocolShareReserveAddress;
|
|
96
|
+
try {
|
|
97
|
+
protocolShareReserveAddress = (await hardhat_1.ethers.getContract("ProtocolShareReserve")).address;
|
|
98
|
+
}
|
|
99
|
+
catch (e) {
|
|
100
|
+
if (!hre.network.live) {
|
|
101
|
+
console.warn("ProtocolShareReserve contract not found. Deploying address");
|
|
102
|
+
await (0, _001_psr_1.default)(hre);
|
|
103
|
+
protocolShareReserveAddress = (await hardhat_1.ethers.getContract("ProtocolShareReserve")).address;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
throw e;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
88
109
|
const args = [
|
|
89
110
|
tokenContract.address,
|
|
90
111
|
comptrollerProxy.address,
|
|
@@ -95,7 +116,7 @@ const func = async function (hre) {
|
|
|
95
116
|
vTokenDecimals,
|
|
96
117
|
preconfiguredAddresses.NormalTimelock || deployer,
|
|
97
118
|
accessControlManagerAddress,
|
|
98
|
-
[utils_2.AddressOne,
|
|
119
|
+
[utils_2.AddressOne, protocolShareReserveAddress],
|
|
99
120
|
reserveFactor,
|
|
100
121
|
];
|
|
101
122
|
await deploy(`VToken_${symbol}`, {
|
|
@@ -104,6 +125,7 @@ const func = async function (hre) {
|
|
|
104
125
|
args: [vTokenBeacon.address, VToken.interface.encodeFunctionData("initialize", args)],
|
|
105
126
|
log: true,
|
|
106
127
|
autoMine: true,
|
|
128
|
+
skipIfAlreadyDeployed: true,
|
|
107
129
|
});
|
|
108
130
|
console.log(`-----------------------------------------`);
|
|
109
131
|
}
|
|
@@ -47,6 +47,10 @@ const func = async function (hre) {
|
|
|
47
47
|
log: true,
|
|
48
48
|
skipIfAlreadyDeployed: true,
|
|
49
49
|
});
|
|
50
|
+
const rewardsDistributor = await hardhat_1.ethers.getContract(contractName);
|
|
51
|
+
if ((await rewardsDistributor.owner()) === deployer) {
|
|
52
|
+
await rewardsDistributor.transferOwnership(proxyOwnerAddress);
|
|
53
|
+
}
|
|
50
54
|
}
|
|
51
55
|
}
|
|
52
56
|
};
|