@venusprotocol/isolated-pools 4.0.0 → 4.1.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.
@@ -2970,6 +2970,38 @@ exports.globalConfig = {
2970
2970
  decimals: 18,
2971
2971
  tokenAddress: hardhat_1.ethers.constants.AddressZero,
2972
2972
  },
2973
+ {
2974
+ isMock: true,
2975
+ standard: "ERC-4626",
2976
+ name: "USDC-1 yVault",
2977
+ symbol: "yvUSDC-1",
2978
+ decimals: 6,
2979
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
2980
+ },
2981
+ {
2982
+ isMock: true,
2983
+ standard: "ERC-4626",
2984
+ name: "USDT-1 yVault",
2985
+ symbol: "yvUSDT-1",
2986
+ decimals: 6,
2987
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
2988
+ },
2989
+ {
2990
+ isMock: true,
2991
+ standard: "ERC-4626",
2992
+ name: "USDS-1 yVault",
2993
+ symbol: "yvUSDS-1",
2994
+ decimals: 18,
2995
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
2996
+ },
2997
+ {
2998
+ isMock: true,
2999
+ standard: "ERC-4626",
3000
+ name: "WETH-1 yVault",
3001
+ symbol: "yvWETH-1",
3002
+ decimals: 18,
3003
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
3004
+ },
2973
3005
  {
2974
3006
  isMock: true,
2975
3007
  name: "Balancer",
@@ -3256,6 +3288,78 @@ exports.globalConfig = {
3256
3288
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
3257
3289
  vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
3258
3290
  },
3291
+ {
3292
+ name: "Venus yvUSDC-1 (Core)",
3293
+ asset: "yvUSDC-1",
3294
+ symbol: "vyvUSDC-1_Core",
3295
+ rateModel: InterestRateModels.JumpRate.toString(),
3296
+ baseRatePerYear: (0, utils_1.convertToUnit)("0", 18),
3297
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15625", 18),
3298
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
3299
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
3300
+ collateralFactor: (0, utils_1.convertToUnit)("0.5", 18),
3301
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
3302
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
3303
+ initialSupply: (0, utils_1.convertToUnit)("10000", 6),
3304
+ supplyCap: (0, utils_1.convertToUnit)("400000", 6),
3305
+ borrowCap: (0, utils_1.convertToUnit)("0", 6),
3306
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
3307
+ vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
3308
+ },
3309
+ {
3310
+ name: "Venus yvUSDT-1 (Core)",
3311
+ asset: "yvUSDT-1",
3312
+ symbol: "vyvUSDT-1_Core",
3313
+ rateModel: InterestRateModels.JumpRate.toString(),
3314
+ baseRatePerYear: (0, utils_1.convertToUnit)("0", 18),
3315
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15625", 18),
3316
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
3317
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
3318
+ collateralFactor: (0, utils_1.convertToUnit)("0.5", 18),
3319
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
3320
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
3321
+ initialSupply: (0, utils_1.convertToUnit)("10000", 6),
3322
+ supplyCap: (0, utils_1.convertToUnit)("630000", 6),
3323
+ borrowCap: (0, utils_1.convertToUnit)("0", 6),
3324
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
3325
+ vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
3326
+ },
3327
+ {
3328
+ name: "Venus yvUSDS-1 (Core)",
3329
+ asset: "yvUSDS-1",
3330
+ symbol: "vyvUSDS-1_Core",
3331
+ rateModel: InterestRateModels.JumpRate.toString(),
3332
+ baseRatePerYear: (0, utils_1.convertToUnit)("0", 18),
3333
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15625", 18),
3334
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
3335
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
3336
+ collateralFactor: (0, utils_1.convertToUnit)("0.5", 18),
3337
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
3338
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
3339
+ initialSupply: (0, utils_1.convertToUnit)("10000", 18),
3340
+ supplyCap: (0, utils_1.convertToUnit)("640000", 18),
3341
+ borrowCap: (0, utils_1.convertToUnit)("0", 18),
3342
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
3343
+ vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
3344
+ },
3345
+ {
3346
+ name: "Venus yvWETH-1 (Core)",
3347
+ asset: "yvWETH-1",
3348
+ symbol: "vyvWETH-1_Core",
3349
+ rateModel: InterestRateModels.JumpRate.toString(),
3350
+ baseRatePerYear: (0, utils_1.convertToUnit)("0", 18),
3351
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15625", 18),
3352
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
3353
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
3354
+ collateralFactor: (0, utils_1.convertToUnit)("0.5", 18),
3355
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
3356
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
3357
+ initialSupply: (0, utils_1.convertToUnit)("3", 18),
3358
+ supplyCap: (0, utils_1.convertToUnit)("56", 18),
3359
+ borrowCap: (0, utils_1.convertToUnit)("0", 18),
3360
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
3361
+ vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
3362
+ },
3259
3363
  {
3260
3364
  name: "Venus BAL (Core)",
3261
3365
  asset: "BAL",
@@ -3941,6 +4045,34 @@ exports.globalConfig = {
3941
4045
  decimals: 18,
3942
4046
  tokenAddress: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD",
3943
4047
  },
4048
+ {
4049
+ isMock: false,
4050
+ name: "USDC-1 yVault",
4051
+ symbol: "yvUSDC-1",
4052
+ decimals: 6,
4053
+ tokenAddress: "0xBe53A109B494E5c9f97b9Cd39Fe969BE68BF6204",
4054
+ },
4055
+ {
4056
+ isMock: false,
4057
+ name: "USDT-1 yVault",
4058
+ symbol: "yvUSDT-1",
4059
+ decimals: 6,
4060
+ tokenAddress: "0x310B7Ea7475A0B449Cfd73bE81522F1B88eFAFaa",
4061
+ },
4062
+ {
4063
+ isMock: false,
4064
+ name: "USDS-1 yVault",
4065
+ symbol: "yvUSDS-1",
4066
+ decimals: 18,
4067
+ tokenAddress: "0x182863131F9a4630fF9E27830d945B1413e347E8",
4068
+ },
4069
+ {
4070
+ isMock: false,
4071
+ name: "WETH-1 yVault",
4072
+ symbol: "yvWETH-1",
4073
+ decimals: 18,
4074
+ tokenAddress: "0xc56413869c6CDf96496f2b1eF801fEDBdFA7dDB0",
4075
+ },
3944
4076
  {
3945
4077
  isMock: false,
3946
4078
  name: "Balancer",
@@ -4215,6 +4347,78 @@ exports.globalConfig = {
4215
4347
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
4216
4348
  vTokenReceiver: "0x9c489E4efba90A67299C1097a8628e233C33BB7B",
4217
4349
  },
4350
+ {
4351
+ name: "Venus yvUSDC-1 (Core)",
4352
+ asset: "yvUSDC-1",
4353
+ symbol: "vyvUSDC-1_Core",
4354
+ rateModel: InterestRateModels.JumpRate.toString(),
4355
+ baseRatePerYear: (0, utils_1.convertToUnit)("0", 18),
4356
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15625", 18),
4357
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
4358
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
4359
+ collateralFactor: (0, utils_1.convertToUnit)("0.5", 18),
4360
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
4361
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
4362
+ initialSupply: (0, utils_1.convertToUnit)("10000", 6),
4363
+ supplyCap: (0, utils_1.convertToUnit)("400000", 6),
4364
+ borrowCap: (0, utils_1.convertToUnit)("0", 6),
4365
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
4366
+ vTokenReceiver: exports.preconfiguredAddresses.ethereum.VTreasury,
4367
+ },
4368
+ {
4369
+ name: "Venus yvUSDT-1 (Core)",
4370
+ asset: "yvUSDT-1",
4371
+ symbol: "vyvUSDT-1_Core",
4372
+ rateModel: InterestRateModels.JumpRate.toString(),
4373
+ baseRatePerYear: (0, utils_1.convertToUnit)("0", 18),
4374
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15625", 18),
4375
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
4376
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
4377
+ collateralFactor: (0, utils_1.convertToUnit)("0.5", 18),
4378
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
4379
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
4380
+ initialSupply: (0, utils_1.convertToUnit)("10000", 6),
4381
+ supplyCap: (0, utils_1.convertToUnit)("630000", 6),
4382
+ borrowCap: (0, utils_1.convertToUnit)("0", 6),
4383
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
4384
+ vTokenReceiver: exports.preconfiguredAddresses.ethereum.VTreasury,
4385
+ },
4386
+ {
4387
+ name: "Venus yvUSDS-1 (Core)",
4388
+ asset: "yvUSDS-1",
4389
+ symbol: "vyvUSDS-1_Core",
4390
+ rateModel: InterestRateModels.JumpRate.toString(),
4391
+ baseRatePerYear: (0, utils_1.convertToUnit)("0", 18),
4392
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15625", 18),
4393
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
4394
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
4395
+ collateralFactor: (0, utils_1.convertToUnit)("0.5", 18),
4396
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
4397
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
4398
+ initialSupply: (0, utils_1.convertToUnit)("10000", 18),
4399
+ supplyCap: (0, utils_1.convertToUnit)("640000", 18),
4400
+ borrowCap: (0, utils_1.convertToUnit)("0", 18),
4401
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
4402
+ vTokenReceiver: exports.preconfiguredAddresses.ethereum.VTreasury,
4403
+ },
4404
+ {
4405
+ name: "Venus yvWETH-1 (Core)",
4406
+ asset: "yvWETH-1",
4407
+ symbol: "vyvWETH-1_Core",
4408
+ rateModel: InterestRateModels.JumpRate.toString(),
4409
+ baseRatePerYear: (0, utils_1.convertToUnit)("0", 18),
4410
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.15625", 18),
4411
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
4412
+ kink_: (0, utils_1.convertToUnit)("0.8", 18),
4413
+ collateralFactor: (0, utils_1.convertToUnit)("0.5", 18),
4414
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.6", 18),
4415
+ reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
4416
+ initialSupply: (0, utils_1.convertToUnit)("3", 18),
4417
+ supplyCap: (0, utils_1.convertToUnit)("56", 18),
4418
+ borrowCap: (0, utils_1.convertToUnit)("0", 18),
4419
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
4420
+ vTokenReceiver: exports.preconfiguredAddresses.ethereum.VTreasury,
4421
+ },
4218
4422
  {
4219
4423
  name: "Venus BAL (Core)",
4220
4424
  asset: "BAL",
@@ -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.0.0",
3
+ "version": "4.1.0-dev.1",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",