@venusprotocol/isolated-pools 4.2.0-dev.4 → 4.2.0-dev.6

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 (43) hide show
  1. package/deployments/basemainnet/VToken_vwstETH_Core.json +257 -0
  2. package/deployments/basemainnet/solcInputs/bf6504e8406cd8d7763a8de7cdacad9c.json +454 -0
  3. package/deployments/basemainnet.json +74 -0
  4. package/deployments/basemainnet_addresses.json +1 -0
  5. package/deployments/basesepolia/MockwstETH.json +458 -0
  6. package/deployments/basesepolia/VToken_vwstETH_Core.json +257 -0
  7. package/deployments/basesepolia/solcInputs/bf6504e8406cd8d7763a8de7cdacad9c.json +454 -0
  8. package/deployments/basesepolia.json +383 -0
  9. package/deployments/basesepolia_addresses.json +2 -0
  10. package/deployments/unichainmainnet/JumpRateModelV2_base0bps_slope1500bps_jump30000bps_kink3000bps.json +608 -0
  11. package/deployments/unichainmainnet/VToken_vUNI_Core.json +257 -0
  12. package/deployments/unichainmainnet.json +434 -0
  13. package/deployments/unichainmainnet_addresses.json +2 -0
  14. package/deployments/unichainsepolia/JumpRateModelV2_base0bps_slope1500bps_jump30000bps_kink3000bps.json +608 -0
  15. package/deployments/unichainsepolia/MockUNI.json +458 -0
  16. package/deployments/unichainsepolia/VToken_vUNI_Core.json +257 -0
  17. package/deployments/unichainsepolia/solcInputs/bf6504e8406cd8d7763a8de7cdacad9c.json +454 -0
  18. package/deployments/unichainsepolia.json +864 -121
  19. package/deployments/unichainsepolia_addresses.json +3 -0
  20. package/deployments/zksyncmainnet/JumpRateModelV2_base0bps_slope900bps_jump30000bps_kink4500bps.json +668 -0
  21. package/deployments/zksyncmainnet/VToken_vwstETH_Core.json +317 -0
  22. package/deployments/zksyncmainnet/solcInputs/4891999ef4820941e6f6f9716556c887.json +169 -0
  23. package/deployments/zksyncmainnet.json +434 -0
  24. package/deployments/zksyncmainnet_addresses.json +3 -1
  25. package/deployments/zksyncsepolia/JumpRateModelV2_base0bps_slope900bps_jump30000bps_kink4500bps.json +668 -0
  26. package/deployments/zksyncsepolia/MockwstETH.json +519 -0
  27. package/deployments/zksyncsepolia/VToken_vwstETH_Core.json +317 -0
  28. package/deployments/zksyncsepolia/solcInputs/4891999ef4820941e6f6f9716556c887.json +169 -0
  29. package/deployments/zksyncsepolia.json +774 -31
  30. package/deployments/zksyncsepolia_addresses.json +4 -1
  31. package/dist/deployments/basemainnet.json +74 -0
  32. package/dist/deployments/basesepolia.json +383 -0
  33. package/dist/deployments/unichainmainnet.json +434 -0
  34. package/dist/deployments/unichainsepolia.json +864 -121
  35. package/dist/deployments/zksyncmainnet.json +434 -0
  36. package/dist/deployments/zksyncsepolia.json +774 -31
  37. package/dist/hardhat.config.js +1 -0
  38. package/dist/helpers/deploymentConfig.js +150 -0
  39. package/dist/typechain/factories/IVToken__factory.d.ts +5 -1
  40. package/dist/typechain/factories/IVToken__factory.js +201 -1
  41. package/package.json +1 -1
  42. package/typechain/IVToken.d.ts +341 -4
  43. package/typechain/factories/IVToken__factory.ts +201 -1
@@ -373,6 +373,7 @@ const config = {
373
373
  url: process.env.ARCHIVE_NODE_unichainsepolia || "https://sepolia.unichain.org",
374
374
  chainId: 1301,
375
375
  live: true,
376
+ tags: ["testnet"],
376
377
  accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
377
378
  },
378
379
  unichainmainnet: {
@@ -5867,6 +5867,13 @@ exports.globalConfig = {
5867
5867
  decimals: 18,
5868
5868
  tokenAddress: hardhat_1.ethers.constants.AddressZero,
5869
5869
  },
5870
+ {
5871
+ isMock: true,
5872
+ name: "Wrapped liquid staked Ether 2.0.",
5873
+ symbol: "wstETH",
5874
+ decimals: 18,
5875
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
5876
+ },
5870
5877
  ],
5871
5878
  poolConfig: [
5872
5879
  {
@@ -6002,6 +6009,24 @@ exports.globalConfig = {
6002
6009
  reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_SEPOLIA,
6003
6010
  vTokenReceiver: exports.preconfiguredAddresses.zksyncsepolia.VTreasury,
6004
6011
  },
6012
+ {
6013
+ name: "Venus wstETH (Core)",
6014
+ asset: "wstETH",
6015
+ symbol: "vwstETH_Core",
6016
+ rateModel: InterestRateModels.JumpRate.toString(),
6017
+ baseRatePerYear: "0",
6018
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
6019
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
6020
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
6021
+ collateralFactor: (0, utils_1.convertToUnit)("0.71", 18),
6022
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.76", 18),
6023
+ reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
6024
+ initialSupply: (0, utils_1.convertToUnit)(2.5, 18),
6025
+ supplyCap: (0, utils_1.convertToUnit)(350, 18),
6026
+ borrowCap: (0, utils_1.convertToUnit)(35, 18),
6027
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_SEPOLIA,
6028
+ vTokenReceiver: exports.preconfiguredAddresses.zksyncsepolia.VTreasury,
6029
+ },
6005
6030
  ],
6006
6031
  rewards: [
6007
6032
  // XVS Rewards Over 3600 days (311040000 seconds)
@@ -6095,6 +6120,13 @@ exports.globalConfig = {
6095
6120
  decimals: 18,
6096
6121
  tokenAddress: "0xA900cbE7739c96D2B153a273953620A701d5442b",
6097
6122
  },
6123
+ {
6124
+ isMock: false,
6125
+ name: "Wrapped liquid staked Ether 2.0.",
6126
+ symbol: "wstETH",
6127
+ decimals: 18,
6128
+ tokenAddress: "0x703b52F2b28fEbcB60E1372858AF5b18849FE867",
6129
+ },
6098
6130
  ],
6099
6131
  poolConfig: [
6100
6132
  {
@@ -6239,6 +6271,24 @@ exports.globalConfig = {
6239
6271
  reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_MAINNET,
6240
6272
  vTokenReceiver: "0xFfCf33Ed3fc6B7eC7d4F6166cC1B86d4F42Af192",
6241
6273
  },
6274
+ {
6275
+ name: "Venus wstETH (Core)",
6276
+ asset: "wstETH",
6277
+ symbol: "vwstETH_Core",
6278
+ rateModel: InterestRateModels.JumpRate.toString(),
6279
+ baseRatePerYear: "0",
6280
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
6281
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
6282
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
6283
+ collateralFactor: (0, utils_1.convertToUnit)("0.71", 18),
6284
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.76", 18),
6285
+ reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
6286
+ initialSupply: (0, utils_1.convertToUnit)("2.5", 18),
6287
+ supplyCap: (0, utils_1.convertToUnit)(350, 18),
6288
+ borrowCap: (0, utils_1.convertToUnit)(35, 18),
6289
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ZKSYNC_MAINNET,
6290
+ vTokenReceiver: "0x65B05f4fCa066316383b0FE196C76C873a4dFD02",
6291
+ },
6242
6292
  ],
6243
6293
  rewards: [
6244
6294
  // XVS Rewards Over 1 month (2,592,000 seconds)
@@ -6641,6 +6691,13 @@ exports.globalConfig = {
6641
6691
  decimals: 18,
6642
6692
  tokenAddress: hardhat_1.ethers.constants.AddressZero,
6643
6693
  },
6694
+ {
6695
+ isMock: true,
6696
+ name: "Wrapped liquid staked Ether 2.0",
6697
+ symbol: "wstETH",
6698
+ decimals: 18,
6699
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
6700
+ },
6644
6701
  ],
6645
6702
  poolConfig: [
6646
6703
  {
@@ -6722,6 +6779,24 @@ exports.globalConfig = {
6722
6779
  reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BASE_SEPOLIA,
6723
6780
  vTokenReceiver: exports.preconfiguredAddresses.basesepolia.VTreasury,
6724
6781
  },
6782
+ {
6783
+ name: "Venus wstETH (Core)",
6784
+ asset: "wstETH",
6785
+ symbol: "vwstETH_Core",
6786
+ rateModel: InterestRateModels.JumpRate.toString(),
6787
+ baseRatePerYear: "0",
6788
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
6789
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
6790
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
6791
+ collateralFactor: (0, utils_1.convertToUnit)("0.785", 18),
6792
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.81", 18),
6793
+ reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
6794
+ initialSupply: (0, utils_1.convertToUnit)("2.5", 18),
6795
+ supplyCap: (0, utils_1.convertToUnit)(2600, 18),
6796
+ borrowCap: (0, utils_1.convertToUnit)(260, 18),
6797
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BASE_SEPOLIA,
6798
+ vTokenReceiver: exports.preconfiguredAddresses.basesepolia.VTreasury,
6799
+ },
6725
6800
  ],
6726
6801
  rewards: [
6727
6802
  // XVS Rewards Over 120 months (311040000 seconds)
@@ -6787,6 +6862,13 @@ exports.globalConfig = {
6787
6862
  decimals: 18,
6788
6863
  tokenAddress: "0x7FcD174E80f264448ebeE8c88a7C4476AAF58Ea6",
6789
6864
  },
6865
+ {
6866
+ isMock: false,
6867
+ name: "Wrapped liquid staked Ether 2.0",
6868
+ symbol: "wstETH",
6869
+ decimals: 18,
6870
+ tokenAddress: "0xc1cba3fcea344f92d9239c08c0568f6f2f0ee452",
6871
+ },
6790
6872
  ],
6791
6873
  poolConfig: [
6792
6874
  {
@@ -6868,6 +6950,24 @@ exports.globalConfig = {
6868
6950
  reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BASE_MAINNET,
6869
6951
  vTokenReceiver: "0x3c112E20141B65041C252a68a611EF145f58B7bc",
6870
6952
  },
6953
+ {
6954
+ name: "Venus wstETH (Core)",
6955
+ asset: "wstETH",
6956
+ symbol: "vwstETH_Core",
6957
+ rateModel: InterestRateModels.JumpRate.toString(),
6958
+ baseRatePerYear: "0",
6959
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
6960
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
6961
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
6962
+ collateralFactor: (0, utils_1.convertToUnit)("0.785", 18),
6963
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.81", 18),
6964
+ reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
6965
+ initialSupply: (0, utils_1.convertToUnit)("2.5", 18),
6966
+ supplyCap: (0, utils_1.convertToUnit)(2600, 18),
6967
+ borrowCap: (0, utils_1.convertToUnit)(260, 18),
6968
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BASE_SEPOLIA,
6969
+ vTokenReceiver: "0x5A9d695c518e95CD6Ea101f2f25fC2AE18486A61",
6970
+ },
6871
6971
  ],
6872
6972
  rewards: [],
6873
6973
  },
@@ -6915,6 +7015,13 @@ exports.globalConfig = {
6915
7015
  decimals: 18,
6916
7016
  tokenAddress: "0xC0e51E865bc9Fed0a32Cc0B2A65449567Bc5c741",
6917
7017
  },
7018
+ {
7019
+ isMock: true,
7020
+ name: "Uniswap",
7021
+ symbol: "UNI",
7022
+ decimals: 18,
7023
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
7024
+ },
6918
7025
  ],
6919
7026
  poolConfig: [
6920
7027
  {
@@ -6996,6 +7103,24 @@ exports.globalConfig = {
6996
7103
  reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
6997
7104
  vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
6998
7105
  },
7106
+ {
7107
+ name: "Venus UNI (Core)",
7108
+ asset: "UNI",
7109
+ symbol: "vUNI_Core",
7110
+ rateModel: InterestRateModels.JumpRate.toString(),
7111
+ baseRatePerYear: "0",
7112
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
7113
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
7114
+ kink_: (0, utils_1.convertToUnit)("0.3", 18),
7115
+ collateralFactor: (0, utils_1.convertToUnit)("0", 18),
7116
+ liquidationThreshold: (0, utils_1.convertToUnit)("0", 18),
7117
+ reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
7118
+ initialSupply: (0, utils_1.convertToUnit)("529.463427983309919376", 18),
7119
+ supplyCap: (0, utils_1.convertToUnit)("20000", 18),
7120
+ borrowCap: (0, utils_1.convertToUnit)("0", 18),
7121
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_SEPOLIA,
7122
+ vTokenReceiver: exports.preconfiguredAddresses.unichainsepolia.VTreasury,
7123
+ },
6999
7124
  ],
7000
7125
  rewards: [
7001
7126
  // XVS Rewards Over 3600 days (311040000 seconds)
@@ -7047,6 +7172,13 @@ exports.globalConfig = {
7047
7172
  decimals: 18,
7048
7173
  tokenAddress: "0x81908BBaad3f6fC74093540Ab2E9B749BB62aA0d",
7049
7174
  },
7175
+ {
7176
+ isMock: false,
7177
+ name: "Uniswap",
7178
+ symbol: "UNI",
7179
+ decimals: 18,
7180
+ tokenAddress: "0x8f187aa05619a017077f5308904739877ce9ea21",
7181
+ },
7050
7182
  ],
7051
7183
  poolConfig: [
7052
7184
  {
@@ -7092,6 +7224,24 @@ exports.globalConfig = {
7092
7224
  reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_MAINNET,
7093
7225
  vTokenReceiver: exports.preconfiguredAddresses.unichainmainnet.VTreasury,
7094
7226
  },
7227
+ {
7228
+ name: "Venus UNI (Core)",
7229
+ asset: "UNI",
7230
+ symbol: "vUNI_Core",
7231
+ rateModel: InterestRateModels.JumpRate.toString(),
7232
+ baseRatePerYear: "0",
7233
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15", 18),
7234
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
7235
+ kink_: (0, utils_1.convertToUnit)("0.3", 18),
7236
+ collateralFactor: (0, utils_1.convertToUnit)("0", 18),
7237
+ liquidationThreshold: (0, utils_1.convertToUnit)("0", 18),
7238
+ reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
7239
+ initialSupply: (0, utils_1.convertToUnit)("529.463427983309919376", 18),
7240
+ supplyCap: (0, utils_1.convertToUnit)("20000", 18),
7241
+ borrowCap: (0, utils_1.convertToUnit)("0", 18),
7242
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_UNICHAIN_MAINNET,
7243
+ vTokenReceiver: exports.preconfiguredAddresses.unichainmainnet.VTreasury,
7244
+ },
7095
7245
  ],
7096
7246
  rewards: [
7097
7247
  // XVS Rewards Over 30 days (2592000 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": "4.2.0-dev.4",
3
+ "version": "4.2.0-dev.6",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",