@venusprotocol/isolated-pools 3.6.0 → 3.7.0-dev.2

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.
Files changed (27) hide show
  1. package/deployments/ethereum/VToken_vEIGEN.json +257 -0
  2. package/deployments/ethereum.json +74 -0
  3. package/deployments/ethereum_addresses.json +1 -0
  4. package/deployments/sepolia/MockEIGEN.json +458 -0
  5. package/deployments/sepolia/VToken_vEIGEN.json +257 -0
  6. package/deployments/sepolia.json +383 -0
  7. package/deployments/sepolia_addresses.json +2 -0
  8. package/deployments/zksyncmainnet/VToken_vUSDC_Core.json +317 -0
  9. package/deployments/zksyncmainnet/solcInputs/d76281ebfc364775b25298b192a96581.json +403 -0
  10. package/deployments/zksyncmainnet.json +74 -0
  11. package/deployments/zksyncmainnet_addresses.json +1 -0
  12. package/deployments/zksyncsepolia/JumpRateModelV2_base0bps_slope875bps_jump8000bps_kink8000bps.json +706 -0
  13. package/deployments/zksyncsepolia/MockUSDC.json +557 -0
  14. package/deployments/zksyncsepolia/VToken_vUSDC_Core.json +355 -0
  15. package/deployments/zksyncsepolia/solcInputs/d76281ebfc364775b25298b192a96581.json +403 -0
  16. package/deployments/zksyncsepolia.json +743 -0
  17. package/deployments/zksyncsepolia_addresses.json +3 -0
  18. package/dist/deployments/ethereum.json +74 -0
  19. package/dist/deployments/sepolia.json +383 -0
  20. package/dist/deployments/zksyncmainnet.json +74 -0
  21. package/dist/deployments/zksyncsepolia.json +743 -0
  22. package/dist/helpers/deploymentConfig.js +100 -0
  23. package/dist/typechain/factories/IVToken__factory.d.ts +5 -1
  24. package/dist/typechain/factories/IVToken__factory.js +201 -1
  25. package/package.json +1 -1
  26. package/typechain/IVToken.d.ts +341 -4
  27. package/typechain/factories/IVToken__factory.ts +201 -1
@@ -2734,6 +2734,13 @@ exports.globalConfig = {
2734
2734
  decimals: 18,
2735
2735
  tokenAddress: hardhat_1.ethers.constants.AddressZero,
2736
2736
  },
2737
+ {
2738
+ isMock: true,
2739
+ name: "Eigen",
2740
+ symbol: "EIGEN",
2741
+ decimals: 18,
2742
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
2743
+ },
2737
2744
  ],
2738
2745
  poolConfig: [
2739
2746
  {
@@ -2923,6 +2930,24 @@ exports.globalConfig = {
2923
2930
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2924
2931
  vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury, // TBD
2925
2932
  },
2933
+ {
2934
+ name: "Venus EIGEN",
2935
+ asset: "EIGEN",
2936
+ symbol: "vEIGEN",
2937
+ rateModel: InterestRateModels.JumpRate.toString(),
2938
+ baseRatePerYear: (0, utils_1.convertToUnit)("0.02", 18),
2939
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
2940
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
2941
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
2942
+ collateralFactor: (0, utils_1.convertToUnit)("0.5", 18),
2943
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
2944
+ reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
2945
+ initialSupply: (0, utils_1.convertToUnit)(500, 18),
2946
+ supplyCap: (0, utils_1.convertToUnit)(3000000, 18),
2947
+ borrowCap: (0, utils_1.convertToUnit)(1500000, 18),
2948
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2949
+ vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
2950
+ },
2926
2951
  ],
2927
2952
  rewards: [
2928
2953
  // XVS Rewards Over 90 days (648000 blocks)
@@ -3420,6 +3445,13 @@ exports.globalConfig = {
3420
3445
  decimals: 18,
3421
3446
  tokenAddress: "0x917ceE801a67f933F2e6b33fC0cD1ED2d5909D88",
3422
3447
  },
3448
+ {
3449
+ isMock: false,
3450
+ name: "Eigen",
3451
+ symbol: "EIGEN",
3452
+ decimals: 18,
3453
+ tokenAddress: "0xec53bF9167f50cDEB3Ae105f56099aaaB9061F83",
3454
+ },
3423
3455
  ],
3424
3456
  poolConfig: [
3425
3457
  {
@@ -3591,6 +3623,24 @@ exports.globalConfig = {
3591
3623
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
3592
3624
  vTokenReceiver: "0x6e74053a3798e0fC9a9775F7995316b27f21c4D2",
3593
3625
  },
3626
+ {
3627
+ name: "Venus EIGEN",
3628
+ asset: "EIGEN",
3629
+ symbol: "vEIGEN",
3630
+ rateModel: InterestRateModels.JumpRate.toString(),
3631
+ baseRatePerYear: (0, utils_1.convertToUnit)("0.02", 18),
3632
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
3633
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
3634
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
3635
+ collateralFactor: (0, utils_1.convertToUnit)("0.5", 18),
3636
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
3637
+ reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
3638
+ initialSupply: (0, utils_1.convertToUnit)(500, 18),
3639
+ supplyCap: (0, utils_1.convertToUnit)(3000000, 18),
3640
+ borrowCap: (0, utils_1.convertToUnit)(1500000, 18),
3641
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
3642
+ vTokenReceiver: exports.preconfiguredAddresses.ethereum.VTreasury,
3643
+ },
3594
3644
  ],
3595
3645
  rewards: [
3596
3646
  // XVS Rewards Over 90 days (648000 blocks)
@@ -4731,6 +4781,13 @@ exports.globalConfig = {
4731
4781
  decimals: 18,
4732
4782
  tokenAddress: hardhat_1.ethers.constants.AddressZero,
4733
4783
  },
4784
+ {
4785
+ isMock: true,
4786
+ name: "USDC",
4787
+ symbol: "USDC",
4788
+ decimals: 6,
4789
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
4790
+ },
4734
4791
  {
4735
4792
  isMock: false,
4736
4793
  name: "Venus",
@@ -4837,6 +4894,24 @@ exports.globalConfig = {
4837
4894
  reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_SEPOLIA,
4838
4895
  vTokenReceiver: exports.preconfiguredAddresses.zksyncsepolia.VTreasury,
4839
4896
  },
4897
+ {
4898
+ name: "Venus USDC (Core)",
4899
+ asset: "USDC",
4900
+ symbol: "vUSDC_Core",
4901
+ rateModel: InterestRateModels.JumpRate.toString(),
4902
+ baseRatePerYear: "0",
4903
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
4904
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("0.8", 18),
4905
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
4906
+ collateralFactor: (0, utils_1.convertToUnit)("0.72", 18),
4907
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
4908
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
4909
+ initialSupply: (0, utils_1.convertToUnit)(5000, 6),
4910
+ supplyCap: (0, utils_1.convertToUnit)(1250000, 6),
4911
+ borrowCap: (0, utils_1.convertToUnit)(1000000, 6),
4912
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_SEPOLIA,
4913
+ vTokenReceiver: exports.preconfiguredAddresses.zksyncsepolia.VTreasury,
4914
+ },
4840
4915
  ],
4841
4916
  rewards: [
4842
4917
  // XVS Rewards Over 3600 days (311040000 seconds)
@@ -4909,6 +4984,13 @@ exports.globalConfig = {
4909
4984
  decimals: 18,
4910
4985
  tokenAddress: "0xD78ABD81a3D57712a3af080dc4185b698Fe9ac5A",
4911
4986
  },
4987
+ {
4988
+ isMock: false,
4989
+ name: "USDC",
4990
+ symbol: "USDC",
4991
+ decimals: 6,
4992
+ tokenAddress: "0x1d17CBcF0D6D143135aE902365D2E5e2A16538D4",
4993
+ },
4912
4994
  ],
4913
4995
  poolConfig: [
4914
4996
  {
@@ -5008,6 +5090,24 @@ exports.globalConfig = {
5008
5090
  reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_MAINNET,
5009
5091
  vTokenReceiver: exports.preconfiguredAddresses.zksyncmainnet.VTreasury,
5010
5092
  },
5093
+ {
5094
+ name: "Venus USDC (Core)",
5095
+ asset: "USDC",
5096
+ symbol: "vUSDC_Core",
5097
+ rateModel: InterestRateModels.JumpRate.toString(),
5098
+ baseRatePerYear: "0",
5099
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
5100
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("0.8", 18),
5101
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
5102
+ collateralFactor: (0, utils_1.convertToUnit)("0.72", 18),
5103
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.75", 18),
5104
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
5105
+ initialSupply: (0, utils_1.convertToUnit)(5000, 6),
5106
+ supplyCap: (0, utils_1.convertToUnit)(1250000, 6),
5107
+ borrowCap: (0, utils_1.convertToUnit)(1000000, 6),
5108
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_MAINNET,
5109
+ vTokenReceiver: exports.preconfiguredAddresses.zksyncmainnet.VTreasury,
5110
+ },
5011
5111
  ],
5012
5112
  rewards: [
5013
5113
  // XVS Rewards Over 1 month (2,592,000 seconds)
@@ -3,7 +3,11 @@ 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: never[];
6
+ inputs: {
7
+ internalType: string;
8
+ name: string;
9
+ type: string;
10
+ }[];
7
11
  name: string;
8
12
  outputs: {
9
13
  internalType: string;
@@ -6,6 +6,206 @@ 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
+ },
9
209
  {
10
210
  inputs: [],
11
211
  name: "underlying",
@@ -16,7 +216,7 @@ const _abi = [
16
216
  type: "address",
17
217
  },
18
218
  ],
19
- stateMutability: "view",
219
+ stateMutability: "nonpayable",
20
220
  type: "function",
21
221
  },
22
222
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/isolated-pools",
3
- "version": "3.6.0",
3
+ "version": "3.7.0-dev.2",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",