@venusprotocol/isolated-pools 3.8.0-dev.5 → 3.9.0-dev.1
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/arbitrumone/VToken_vgmBTC-USDC_Core.json +257 -0
- package/deployments/arbitrumone/VToken_vgmWETH-USDC_Core.json +257 -0
- package/deployments/arbitrumone.json +148 -0
- package/deployments/arbitrumone_addresses.json +2 -0
- package/deployments/arbitrumsepolia/JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink4500bps.json +608 -0
- package/deployments/arbitrumsepolia/JumpRateModelV2_base0bps_slope300bps_jump45000bps_kink9000bps.json +608 -0
- package/deployments/arbitrumsepolia/MockgmBTC.json +458 -0
- package/deployments/arbitrumsepolia/MockgmETH.json +458 -0
- package/deployments/arbitrumsepolia/VToken_vgmBTC-USDC_Core.json +257 -0
- package/deployments/arbitrumsepolia/VToken_vgmWETH-USDC_Core.json +257 -0
- package/deployments/arbitrumsepolia/solcInputs/3c20dc65cc123659b5918437b44f9306.json +403 -0
- package/deployments/arbitrumsepolia.json +1549 -63
- package/deployments/arbitrumsepolia_addresses.json +6 -0
- package/dist/deployments/arbitrumone.json +148 -0
- package/dist/deployments/arbitrumsepolia.json +1549 -63
- package/dist/helpers/deploymentConfig.js +106 -6
- package/dist/typechain/factories/IVToken__factory.d.ts +1 -5
- package/dist/typechain/factories/IVToken__factory.js +1 -201
- package/package.json +1 -1
- package/typechain/IVToken.d.ts +4 -341
- package/typechain/factories/IVToken__factory.ts +1 -201
|
@@ -141,16 +141,16 @@ exports.preconfiguredAddresses = {
|
|
|
141
141
|
},
|
|
142
142
|
arbitrumsepolia: {
|
|
143
143
|
VTreasury: arbitrumsepolia_json_2.contracts.VTreasuryV8.address,
|
|
144
|
-
NormalTimelock:
|
|
145
|
-
FastTrackTimelock:
|
|
146
|
-
CriticalTimelock:
|
|
144
|
+
NormalTimelock: arbitrumsepolia_json_1.contracts.NormalTimelock.address,
|
|
145
|
+
FastTrackTimelock: arbitrumsepolia_json_1.contracts.FastTrackTimelock.address,
|
|
146
|
+
CriticalTimelock: arbitrumsepolia_json_1.contracts.CriticalTimelock.address,
|
|
147
147
|
AccessControlManager: arbitrumsepolia_json_1.contracts.AccessControlManager.address,
|
|
148
148
|
},
|
|
149
149
|
arbitrumone: {
|
|
150
150
|
VTreasury: arbitrumone_json_2.contracts.VTreasuryV8.address,
|
|
151
|
-
NormalTimelock:
|
|
152
|
-
FastTrackTimelock:
|
|
153
|
-
CriticalTimelock:
|
|
151
|
+
NormalTimelock: arbitrumone_json_1.contracts.NormalTimelock.address,
|
|
152
|
+
FastTrackTimelock: arbitrumone_json_1.contracts.FastTrackTimelock.address,
|
|
153
|
+
CriticalTimelock: arbitrumone_json_1.contracts.CriticalTimelock.address,
|
|
154
154
|
AccessControlManager: arbitrumone_json_1.contracts.AccessControlManager.address,
|
|
155
155
|
},
|
|
156
156
|
zksyncsepolia: {
|
|
@@ -4832,6 +4832,20 @@ exports.globalConfig = {
|
|
|
4832
4832
|
decimals: 18,
|
|
4833
4833
|
tokenAddress: "0x980b62da83eff3d4576c647993b0c1d7faf17c73",
|
|
4834
4834
|
},
|
|
4835
|
+
{
|
|
4836
|
+
isMock: true,
|
|
4837
|
+
name: "GMX Market",
|
|
4838
|
+
symbol: "gmETH",
|
|
4839
|
+
decimals: 18,
|
|
4840
|
+
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
4841
|
+
},
|
|
4842
|
+
{
|
|
4843
|
+
isMock: true,
|
|
4844
|
+
name: "GMX Market",
|
|
4845
|
+
symbol: "gmBTC",
|
|
4846
|
+
decimals: 18,
|
|
4847
|
+
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
4848
|
+
},
|
|
4835
4849
|
],
|
|
4836
4850
|
poolConfig: [
|
|
4837
4851
|
{
|
|
@@ -4931,6 +4945,42 @@ exports.globalConfig = {
|
|
|
4931
4945
|
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
|
|
4932
4946
|
vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
|
|
4933
4947
|
},
|
|
4948
|
+
{
|
|
4949
|
+
name: "Venus gmWETH-USDC (Core)",
|
|
4950
|
+
asset: "gmETH",
|
|
4951
|
+
symbol: "vgmWETH-USDC_Core",
|
|
4952
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
4953
|
+
baseRatePerYear: "0",
|
|
4954
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.03", 18),
|
|
4955
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("4.5", 18),
|
|
4956
|
+
kink_: (0, utils_1.convertToUnit)("0.9", 18),
|
|
4957
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.55", 18),
|
|
4958
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
|
|
4959
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
4960
|
+
initialSupply: (0, utils_1.convertToUnit)("6000", 18),
|
|
4961
|
+
supplyCap: (0, utils_1.convertToUnit)("2000000", 18),
|
|
4962
|
+
borrowCap: (0, utils_1.convertToUnit)(0, 18),
|
|
4963
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
|
|
4964
|
+
vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
|
|
4965
|
+
},
|
|
4966
|
+
{
|
|
4967
|
+
name: "Venus gmBTC-USDC (Core)",
|
|
4968
|
+
asset: "gmBTC",
|
|
4969
|
+
symbol: "vgmBTC-USDC_Core",
|
|
4970
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
4971
|
+
baseRatePerYear: "0",
|
|
4972
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
|
|
4973
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
4974
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
4975
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.55", 18),
|
|
4976
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
|
|
4977
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
4978
|
+
initialSupply: (0, utils_1.convertToUnit)("4800", 18),
|
|
4979
|
+
supplyCap: (0, utils_1.convertToUnit)("2650000", 18),
|
|
4980
|
+
borrowCap: (0, utils_1.convertToUnit)(0, 18),
|
|
4981
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA,
|
|
4982
|
+
vTokenReceiver: exports.preconfiguredAddresses.arbitrumsepolia.VTreasury,
|
|
4983
|
+
},
|
|
4934
4984
|
],
|
|
4935
4985
|
rewards: [
|
|
4936
4986
|
{
|
|
@@ -5070,6 +5120,20 @@ exports.globalConfig = {
|
|
|
5070
5120
|
decimals: 18,
|
|
5071
5121
|
tokenAddress: "0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe",
|
|
5072
5122
|
},
|
|
5123
|
+
{
|
|
5124
|
+
isMock: false,
|
|
5125
|
+
name: "GMX Market",
|
|
5126
|
+
symbol: "GM",
|
|
5127
|
+
decimals: 18,
|
|
5128
|
+
tokenAddress: "0x70d95587d40A2caf56bd97485aB3Eec10Bee6336",
|
|
5129
|
+
},
|
|
5130
|
+
{
|
|
5131
|
+
isMock: false,
|
|
5132
|
+
name: "GMX Market",
|
|
5133
|
+
symbol: "GM",
|
|
5134
|
+
decimals: 18,
|
|
5135
|
+
tokenAddress: "0x47c031236e19d024b42f8AE6780E44A573170703",
|
|
5136
|
+
},
|
|
5073
5137
|
],
|
|
5074
5138
|
poolConfig: [
|
|
5075
5139
|
{
|
|
@@ -5175,6 +5239,42 @@ exports.globalConfig = {
|
|
|
5175
5239
|
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE,
|
|
5176
5240
|
vTokenReceiver: exports.preconfiguredAddresses.arbitrumone.VTreasury,
|
|
5177
5241
|
},
|
|
5242
|
+
{
|
|
5243
|
+
name: "Venus gmWETH-USDC (Core)",
|
|
5244
|
+
asset: "gmETH",
|
|
5245
|
+
symbol: "vgmWETH-USDC_Core",
|
|
5246
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
5247
|
+
baseRatePerYear: "0",
|
|
5248
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.03", 18),
|
|
5249
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("4.5", 18),
|
|
5250
|
+
kink_: (0, utils_1.convertToUnit)("0.9", 18),
|
|
5251
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.55", 18),
|
|
5252
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
|
|
5253
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
5254
|
+
initialSupply: (0, utils_1.convertToUnit)("6000", 18),
|
|
5255
|
+
supplyCap: (0, utils_1.convertToUnit)("2000000", 18),
|
|
5256
|
+
borrowCap: (0, utils_1.convertToUnit)(0, 18),
|
|
5257
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE,
|
|
5258
|
+
vTokenReceiver: "0xe1f7c5209938780625E354dc546E28397F6Ce174",
|
|
5259
|
+
},
|
|
5260
|
+
{
|
|
5261
|
+
name: "Venus gmBTC-USDC (Core)",
|
|
5262
|
+
asset: "gmBTC",
|
|
5263
|
+
symbol: "vgmBTC-USDC_Core",
|
|
5264
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
5265
|
+
baseRatePerYear: "0",
|
|
5266
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
|
|
5267
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
|
|
5268
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
5269
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.55", 18),
|
|
5270
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
|
|
5271
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
|
|
5272
|
+
initialSupply: (0, utils_1.convertToUnit)("4800", 18),
|
|
5273
|
+
supplyCap: (0, utils_1.convertToUnit)("2650000", 18),
|
|
5274
|
+
borrowCap: (0, utils_1.convertToUnit)(0, 18),
|
|
5275
|
+
reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_ONE,
|
|
5276
|
+
vTokenReceiver: "0xe1f7c5209938780625E354dc546E28397F6Ce174",
|
|
5277
|
+
},
|
|
5178
5278
|
],
|
|
5179
5279
|
rewards: [
|
|
5180
5280
|
// XVS Rewards Over 90 days (7776000 seconds)
|
|
@@ -3,11 +3,7 @@ import { Provider } from "@ethersproject/providers";
|
|
|
3
3
|
import type { IVToken, IVTokenInterface } from "../IVToken";
|
|
4
4
|
export declare class IVToken__factory {
|
|
5
5
|
static readonly abi: {
|
|
6
|
-
inputs:
|
|
7
|
-
internalType: string;
|
|
8
|
-
name: string;
|
|
9
|
-
type: string;
|
|
10
|
-
}[];
|
|
6
|
+
inputs: never[];
|
|
11
7
|
name: string;
|
|
12
8
|
outputs: {
|
|
13
9
|
internalType: string;
|
|
@@ -6,206 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.IVToken__factory = void 0;
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
|
-
{
|
|
10
|
-
inputs: [
|
|
11
|
-
{
|
|
12
|
-
internalType: "address",
|
|
13
|
-
name: "account",
|
|
14
|
-
type: "address",
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
name: "borrowBalanceCurrent",
|
|
18
|
-
outputs: [
|
|
19
|
-
{
|
|
20
|
-
internalType: "uint256",
|
|
21
|
-
name: "",
|
|
22
|
-
type: "uint256",
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
stateMutability: "nonpayable",
|
|
26
|
-
type: "function",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
inputs: [
|
|
30
|
-
{
|
|
31
|
-
internalType: "address",
|
|
32
|
-
name: "borrower",
|
|
33
|
-
type: "address",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
internalType: "uint256",
|
|
37
|
-
name: "borrowAmount",
|
|
38
|
-
type: "uint256",
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
name: "borrowBehalf",
|
|
42
|
-
outputs: [
|
|
43
|
-
{
|
|
44
|
-
internalType: "uint256",
|
|
45
|
-
name: "",
|
|
46
|
-
type: "uint256",
|
|
47
|
-
},
|
|
48
|
-
],
|
|
49
|
-
stateMutability: "nonpayable",
|
|
50
|
-
type: "function",
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
inputs: [],
|
|
54
|
-
name: "exchangeRateCurrent",
|
|
55
|
-
outputs: [
|
|
56
|
-
{
|
|
57
|
-
internalType: "uint256",
|
|
58
|
-
name: "",
|
|
59
|
-
type: "uint256",
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
stateMutability: "nonpayable",
|
|
63
|
-
type: "function",
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
inputs: [
|
|
67
|
-
{
|
|
68
|
-
internalType: "address",
|
|
69
|
-
name: "receiver",
|
|
70
|
-
type: "address",
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
internalType: "uint256",
|
|
74
|
-
name: "mintAmount",
|
|
75
|
-
type: "uint256",
|
|
76
|
-
},
|
|
77
|
-
],
|
|
78
|
-
name: "mintBehalf",
|
|
79
|
-
outputs: [
|
|
80
|
-
{
|
|
81
|
-
internalType: "uint256",
|
|
82
|
-
name: "",
|
|
83
|
-
type: "uint256",
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
stateMutability: "nonpayable",
|
|
87
|
-
type: "function",
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
inputs: [
|
|
91
|
-
{
|
|
92
|
-
internalType: "uint256",
|
|
93
|
-
name: "redeemTokens",
|
|
94
|
-
type: "uint256",
|
|
95
|
-
},
|
|
96
|
-
],
|
|
97
|
-
name: "redeem",
|
|
98
|
-
outputs: [
|
|
99
|
-
{
|
|
100
|
-
internalType: "uint256",
|
|
101
|
-
name: "",
|
|
102
|
-
type: "uint256",
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
stateMutability: "nonpayable",
|
|
106
|
-
type: "function",
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
inputs: [
|
|
110
|
-
{
|
|
111
|
-
internalType: "address",
|
|
112
|
-
name: "redeemer",
|
|
113
|
-
type: "address",
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
internalType: "uint256",
|
|
117
|
-
name: "redeemTokens",
|
|
118
|
-
type: "uint256",
|
|
119
|
-
},
|
|
120
|
-
],
|
|
121
|
-
name: "redeemBehalf",
|
|
122
|
-
outputs: [
|
|
123
|
-
{
|
|
124
|
-
internalType: "uint256",
|
|
125
|
-
name: "",
|
|
126
|
-
type: "uint256",
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
stateMutability: "nonpayable",
|
|
130
|
-
type: "function",
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
inputs: [
|
|
134
|
-
{
|
|
135
|
-
internalType: "address",
|
|
136
|
-
name: "redeemer",
|
|
137
|
-
type: "address",
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
internalType: "uint256",
|
|
141
|
-
name: "redeemAmount",
|
|
142
|
-
type: "uint256",
|
|
143
|
-
},
|
|
144
|
-
],
|
|
145
|
-
name: "redeemUnderlyingBehalf",
|
|
146
|
-
outputs: [
|
|
147
|
-
{
|
|
148
|
-
internalType: "uint256",
|
|
149
|
-
name: "",
|
|
150
|
-
type: "uint256",
|
|
151
|
-
},
|
|
152
|
-
],
|
|
153
|
-
stateMutability: "nonpayable",
|
|
154
|
-
type: "function",
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
inputs: [
|
|
158
|
-
{
|
|
159
|
-
internalType: "address",
|
|
160
|
-
name: "borrower",
|
|
161
|
-
type: "address",
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
internalType: "uint256",
|
|
165
|
-
name: "repayAmount",
|
|
166
|
-
type: "uint256",
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
|
-
name: "repayBorrowBehalf",
|
|
170
|
-
outputs: [
|
|
171
|
-
{
|
|
172
|
-
internalType: "uint256",
|
|
173
|
-
name: "",
|
|
174
|
-
type: "uint256",
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
stateMutability: "nonpayable",
|
|
178
|
-
type: "function",
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
inputs: [
|
|
182
|
-
{
|
|
183
|
-
internalType: "address",
|
|
184
|
-
name: "from",
|
|
185
|
-
type: "address",
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
internalType: "address",
|
|
189
|
-
name: "to",
|
|
190
|
-
type: "address",
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
internalType: "uint256",
|
|
194
|
-
name: "amount",
|
|
195
|
-
type: "uint256",
|
|
196
|
-
},
|
|
197
|
-
],
|
|
198
|
-
name: "transferFrom",
|
|
199
|
-
outputs: [
|
|
200
|
-
{
|
|
201
|
-
internalType: "bool",
|
|
202
|
-
name: "",
|
|
203
|
-
type: "bool",
|
|
204
|
-
},
|
|
205
|
-
],
|
|
206
|
-
stateMutability: "nonpayable",
|
|
207
|
-
type: "function",
|
|
208
|
-
},
|
|
209
9
|
{
|
|
210
10
|
inputs: [],
|
|
211
11
|
name: "underlying",
|
|
@@ -216,7 +16,7 @@ const _abi = [
|
|
|
216
16
|
type: "address",
|
|
217
17
|
},
|
|
218
18
|
],
|
|
219
|
-
stateMutability: "
|
|
19
|
+
stateMutability: "view",
|
|
220
20
|
type: "function",
|
|
221
21
|
},
|
|
222
22
|
];
|