@venusprotocol/isolated-pools 3.6.0-dev.4 → 3.6.0-dev.5

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.
@@ -3258,6 +3258,366 @@
3258
3258
  }
3259
3259
  ]
3260
3260
  },
3261
+ "JumpRateModelV2_base0bps_slope300bps_jump8000bps_kink9000bps": {
3262
+ "address": "0xe1747F8D64C297DBB482c4FD8fd11EA73F7Dc85a",
3263
+ "abi": [
3264
+ {
3265
+ "inputs": [
3266
+ {
3267
+ "internalType": "uint256",
3268
+ "name": "baseRatePerYear_",
3269
+ "type": "uint256"
3270
+ },
3271
+ {
3272
+ "internalType": "uint256",
3273
+ "name": "multiplierPerYear_",
3274
+ "type": "uint256"
3275
+ },
3276
+ {
3277
+ "internalType": "uint256",
3278
+ "name": "jumpMultiplierPerYear_",
3279
+ "type": "uint256"
3280
+ },
3281
+ {
3282
+ "internalType": "uint256",
3283
+ "name": "kink_",
3284
+ "type": "uint256"
3285
+ },
3286
+ {
3287
+ "internalType": "contract IAccessControlManagerV8",
3288
+ "name": "accessControlManager_",
3289
+ "type": "address"
3290
+ },
3291
+ {
3292
+ "internalType": "bool",
3293
+ "name": "timeBased_",
3294
+ "type": "bool"
3295
+ },
3296
+ {
3297
+ "internalType": "uint256",
3298
+ "name": "blocksPerYear_",
3299
+ "type": "uint256"
3300
+ }
3301
+ ],
3302
+ "stateMutability": "nonpayable",
3303
+ "type": "constructor"
3304
+ },
3305
+ {
3306
+ "inputs": [],
3307
+ "name": "InvalidBlocksPerYear",
3308
+ "type": "error"
3309
+ },
3310
+ {
3311
+ "inputs": [],
3312
+ "name": "InvalidTimeBasedConfiguration",
3313
+ "type": "error"
3314
+ },
3315
+ {
3316
+ "inputs": [
3317
+ {
3318
+ "internalType": "address",
3319
+ "name": "sender",
3320
+ "type": "address"
3321
+ },
3322
+ {
3323
+ "internalType": "address",
3324
+ "name": "calledContract",
3325
+ "type": "address"
3326
+ },
3327
+ {
3328
+ "internalType": "string",
3329
+ "name": "methodSignature",
3330
+ "type": "string"
3331
+ }
3332
+ ],
3333
+ "name": "Unauthorized",
3334
+ "type": "error"
3335
+ },
3336
+ {
3337
+ "anonymous": false,
3338
+ "inputs": [
3339
+ {
3340
+ "indexed": false,
3341
+ "internalType": "uint256",
3342
+ "name": "baseRatePerBlockOrTimestamp",
3343
+ "type": "uint256"
3344
+ },
3345
+ {
3346
+ "indexed": false,
3347
+ "internalType": "uint256",
3348
+ "name": "multiplierPerBlockOrTimestamp",
3349
+ "type": "uint256"
3350
+ },
3351
+ {
3352
+ "indexed": false,
3353
+ "internalType": "uint256",
3354
+ "name": "jumpMultiplierPerBlockOrTimestamp",
3355
+ "type": "uint256"
3356
+ },
3357
+ {
3358
+ "indexed": false,
3359
+ "internalType": "uint256",
3360
+ "name": "kink",
3361
+ "type": "uint256"
3362
+ }
3363
+ ],
3364
+ "name": "NewInterestParams",
3365
+ "type": "event"
3366
+ },
3367
+ {
3368
+ "inputs": [],
3369
+ "name": "accessControlManager",
3370
+ "outputs": [
3371
+ {
3372
+ "internalType": "contract IAccessControlManagerV8",
3373
+ "name": "",
3374
+ "type": "address"
3375
+ }
3376
+ ],
3377
+ "stateMutability": "view",
3378
+ "type": "function"
3379
+ },
3380
+ {
3381
+ "inputs": [],
3382
+ "name": "baseRatePerBlock",
3383
+ "outputs": [
3384
+ {
3385
+ "internalType": "uint256",
3386
+ "name": "",
3387
+ "type": "uint256"
3388
+ }
3389
+ ],
3390
+ "stateMutability": "view",
3391
+ "type": "function"
3392
+ },
3393
+ {
3394
+ "inputs": [],
3395
+ "name": "blocksOrSecondsPerYear",
3396
+ "outputs": [
3397
+ {
3398
+ "internalType": "uint256",
3399
+ "name": "",
3400
+ "type": "uint256"
3401
+ }
3402
+ ],
3403
+ "stateMutability": "view",
3404
+ "type": "function"
3405
+ },
3406
+ {
3407
+ "inputs": [],
3408
+ "name": "getBlockNumberOrTimestamp",
3409
+ "outputs": [
3410
+ {
3411
+ "internalType": "uint256",
3412
+ "name": "",
3413
+ "type": "uint256"
3414
+ }
3415
+ ],
3416
+ "stateMutability": "view",
3417
+ "type": "function"
3418
+ },
3419
+ {
3420
+ "inputs": [
3421
+ {
3422
+ "internalType": "uint256",
3423
+ "name": "cash",
3424
+ "type": "uint256"
3425
+ },
3426
+ {
3427
+ "internalType": "uint256",
3428
+ "name": "borrows",
3429
+ "type": "uint256"
3430
+ },
3431
+ {
3432
+ "internalType": "uint256",
3433
+ "name": "reserves",
3434
+ "type": "uint256"
3435
+ },
3436
+ {
3437
+ "internalType": "uint256",
3438
+ "name": "badDebt",
3439
+ "type": "uint256"
3440
+ }
3441
+ ],
3442
+ "name": "getBorrowRate",
3443
+ "outputs": [
3444
+ {
3445
+ "internalType": "uint256",
3446
+ "name": "",
3447
+ "type": "uint256"
3448
+ }
3449
+ ],
3450
+ "stateMutability": "view",
3451
+ "type": "function"
3452
+ },
3453
+ {
3454
+ "inputs": [
3455
+ {
3456
+ "internalType": "uint256",
3457
+ "name": "cash",
3458
+ "type": "uint256"
3459
+ },
3460
+ {
3461
+ "internalType": "uint256",
3462
+ "name": "borrows",
3463
+ "type": "uint256"
3464
+ },
3465
+ {
3466
+ "internalType": "uint256",
3467
+ "name": "reserves",
3468
+ "type": "uint256"
3469
+ },
3470
+ {
3471
+ "internalType": "uint256",
3472
+ "name": "reserveFactorMantissa",
3473
+ "type": "uint256"
3474
+ },
3475
+ {
3476
+ "internalType": "uint256",
3477
+ "name": "badDebt",
3478
+ "type": "uint256"
3479
+ }
3480
+ ],
3481
+ "name": "getSupplyRate",
3482
+ "outputs": [
3483
+ {
3484
+ "internalType": "uint256",
3485
+ "name": "",
3486
+ "type": "uint256"
3487
+ }
3488
+ ],
3489
+ "stateMutability": "view",
3490
+ "type": "function"
3491
+ },
3492
+ {
3493
+ "inputs": [],
3494
+ "name": "isInterestRateModel",
3495
+ "outputs": [
3496
+ {
3497
+ "internalType": "bool",
3498
+ "name": "",
3499
+ "type": "bool"
3500
+ }
3501
+ ],
3502
+ "stateMutability": "pure",
3503
+ "type": "function"
3504
+ },
3505
+ {
3506
+ "inputs": [],
3507
+ "name": "isTimeBased",
3508
+ "outputs": [
3509
+ {
3510
+ "internalType": "bool",
3511
+ "name": "",
3512
+ "type": "bool"
3513
+ }
3514
+ ],
3515
+ "stateMutability": "view",
3516
+ "type": "function"
3517
+ },
3518
+ {
3519
+ "inputs": [],
3520
+ "name": "jumpMultiplierPerBlock",
3521
+ "outputs": [
3522
+ {
3523
+ "internalType": "uint256",
3524
+ "name": "",
3525
+ "type": "uint256"
3526
+ }
3527
+ ],
3528
+ "stateMutability": "view",
3529
+ "type": "function"
3530
+ },
3531
+ {
3532
+ "inputs": [],
3533
+ "name": "kink",
3534
+ "outputs": [
3535
+ {
3536
+ "internalType": "uint256",
3537
+ "name": "",
3538
+ "type": "uint256"
3539
+ }
3540
+ ],
3541
+ "stateMutability": "view",
3542
+ "type": "function"
3543
+ },
3544
+ {
3545
+ "inputs": [],
3546
+ "name": "multiplierPerBlock",
3547
+ "outputs": [
3548
+ {
3549
+ "internalType": "uint256",
3550
+ "name": "",
3551
+ "type": "uint256"
3552
+ }
3553
+ ],
3554
+ "stateMutability": "view",
3555
+ "type": "function"
3556
+ },
3557
+ {
3558
+ "inputs": [
3559
+ {
3560
+ "internalType": "uint256",
3561
+ "name": "baseRatePerYear",
3562
+ "type": "uint256"
3563
+ },
3564
+ {
3565
+ "internalType": "uint256",
3566
+ "name": "multiplierPerYear",
3567
+ "type": "uint256"
3568
+ },
3569
+ {
3570
+ "internalType": "uint256",
3571
+ "name": "jumpMultiplierPerYear",
3572
+ "type": "uint256"
3573
+ },
3574
+ {
3575
+ "internalType": "uint256",
3576
+ "name": "kink_",
3577
+ "type": "uint256"
3578
+ }
3579
+ ],
3580
+ "name": "updateJumpRateModel",
3581
+ "outputs": [],
3582
+ "stateMutability": "nonpayable",
3583
+ "type": "function"
3584
+ },
3585
+ {
3586
+ "inputs": [
3587
+ {
3588
+ "internalType": "uint256",
3589
+ "name": "cash",
3590
+ "type": "uint256"
3591
+ },
3592
+ {
3593
+ "internalType": "uint256",
3594
+ "name": "borrows",
3595
+ "type": "uint256"
3596
+ },
3597
+ {
3598
+ "internalType": "uint256",
3599
+ "name": "reserves",
3600
+ "type": "uint256"
3601
+ },
3602
+ {
3603
+ "internalType": "uint256",
3604
+ "name": "badDebt",
3605
+ "type": "uint256"
3606
+ }
3607
+ ],
3608
+ "name": "utilizationRate",
3609
+ "outputs": [
3610
+ {
3611
+ "internalType": "uint256",
3612
+ "name": "",
3613
+ "type": "uint256"
3614
+ }
3615
+ ],
3616
+ "stateMutability": "pure",
3617
+ "type": "function"
3618
+ }
3619
+ ]
3620
+ },
3261
3621
  "JumpRateModelV2_base0bps_slope350bps_jump8000bps_kink8000bps": {
3262
3622
  "address": "0x01E002C218D70dD374566cc40D9fCA1429AB7E65",
3263
3623
  "abi": [
@@ -3748,7 +3748,7 @@ exports.globalConfig = {
3748
3748
  symbol: "vWETH_LiquidStakedETH",
3749
3749
  rateModel: InterestRateModels.JumpRate.toString(),
3750
3750
  baseRatePerYear: "0",
3751
- multiplierPerYear: (0, utils_1.convertToUnit)("0.045", 18),
3751
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.03", 18),
3752
3752
  jumpMultiplierPerYear: (0, utils_1.convertToUnit)("0.8", 18),
3753
3753
  kink_: (0, utils_1.convertToUnit)("0.9", 18),
3754
3754
  collateralFactor: (0, utils_1.convertToUnit)("0", 18),
@@ -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-dev.4",
3
+ "version": "3.6.0-dev.5",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",