@venusprotocol/isolated-pools 3.4.0-dev.3 → 3.4.0-dev.4

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.
@@ -49,6 +49,7 @@ exports.OPBNBMAINNET_MULTISIG = "0xC46796a21a3A9FAB6546aF3434F2eBfFd0604207";
49
49
  exports.ARBITRUM_SEPOLIA_MULTISIG = "0x1426A5Ae009c4443188DA8793751024E358A61C2";
50
50
  exports.ARBITRUM_ONE_MULTISIG = "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0";
51
51
  const DEFAULT_REDUCE_RESERVES_BLOCK_DELTA = "7200";
52
+ const REDUCE_RESERVES_BLOCK_DELTA_ETHEREUM = "7200";
52
53
  const REDUCE_RESERVES_BLOCK_DELTA_OPBNBTESTNET = "300";
53
54
  const REDUCE_RESERVES_BLOCK_DELTA_OPBNBMAINNET = "86400";
54
55
  const REDUCE_RESERVES_BLOCK_DELTA_ARBITRUM_SEPOLIA = "86400";
@@ -2694,24 +2695,6 @@ exports.globalConfig = {
2694
2695
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2695
2696
  vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury, // TBD
2696
2697
  },
2697
- {
2698
- name: "Venus sfrxETH (Liquid Staked ETH)",
2699
- asset: "sfrxETH",
2700
- symbol: "vsfrxETH_LiquidStakedETH",
2701
- rateModel: InterestRateModels.JumpRate.toString(),
2702
- baseRatePerYear: "0",
2703
- multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
2704
- jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
2705
- kink_: (0, utils_1.convertToUnit)("0.40", 18),
2706
- collateralFactor: (0, utils_1.convertToUnit)("0.9", 18),
2707
- liquidationThreshold: (0, utils_1.convertToUnit)("0.93", 18),
2708
- reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
2709
- initialSupply: (0, utils_1.convertToUnit)("1", 18),
2710
- supplyCap: (0, utils_1.convertToUnit)(10000, 18),
2711
- borrowCap: (0, utils_1.convertToUnit)(1000, 18),
2712
- reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2713
- vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
2714
- },
2715
2698
  ],
2716
2699
  rewards: [
2717
2700
  // XVS Rewards Over 90 days (648000 blocks)
@@ -2729,11 +2712,9 @@ exports.globalConfig = {
2729
2712
  // 1440 XVS for Borrowers
2730
2713
  // sFRAX: 1440 XVS for Suppliers
2731
2714
  // 960 XVS for Borrowers
2732
- // sfrxETH: 2400 XVS for Suppliers
2733
- // 0 XVS for Borrowers
2734
2715
  {
2735
2716
  asset: "XVS",
2736
- markets: ["WETH", "WBTC", "USDT", "USDC", "crvUSD", "FRAX", "sFRAX", "sfrxETH"],
2717
+ markets: ["WETH", "WBTC", "USDT", "USDC", "crvUSD", "FRAX", "sFRAX"],
2737
2718
  supplySpeeds: [
2738
2719
  "27777777777777",
2739
2720
  "83333333333333",
@@ -2742,7 +2723,6 @@ exports.globalConfig = {
2742
2723
  "37037037037036",
2743
2724
  "1481481481481481",
2744
2725
  "2222222222222222",
2745
- "3703703703703703",
2746
2726
  ],
2747
2727
  borrowSpeeds: [
2748
2728
  "41666666666666",
@@ -2752,7 +2732,6 @@ exports.globalConfig = {
2752
2732
  "55555555555555",
2753
2733
  "2222222222222222",
2754
2734
  "1481481481481481",
2755
- "0",
2756
2735
  ],
2757
2736
  },
2758
2737
  {
@@ -2988,6 +2967,24 @@ exports.globalConfig = {
2988
2967
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2989
2968
  vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
2990
2969
  },
2970
+ {
2971
+ name: "Venus sfrxETH (Liquid Staked ETH)",
2972
+ asset: "sfrxETH",
2973
+ symbol: "vsfrxETH_LiquidStakedETH",
2974
+ rateModel: InterestRateModels.JumpRate.toString(),
2975
+ baseRatePerYear: "0",
2976
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
2977
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
2978
+ kink_: (0, utils_1.convertToUnit)("0.40", 18),
2979
+ collateralFactor: (0, utils_1.convertToUnit)("0.9", 18),
2980
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.93", 18),
2981
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
2982
+ initialSupply: (0, utils_1.convertToUnit)("1.2", 18),
2983
+ supplyCap: (0, utils_1.convertToUnit)(10000, 18),
2984
+ borrowCap: (0, utils_1.convertToUnit)(1000, 18),
2985
+ reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
2986
+ vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
2987
+ },
2991
2988
  ],
2992
2989
  rewards: [
2993
2990
  // XVS Rewards Over 90 days (648000 blocks)
@@ -2995,11 +2992,13 @@ exports.globalConfig = {
2995
2992
  // 0 XVS for Borrowers
2996
2993
  // WETH: 165 XVS for Suppliers
2997
2994
  // 385 XVS for Borrowers
2995
+ // sfrxETH: 24 XVS for Suppliers
2996
+ // 0 XVS for Borrowers
2998
2997
  {
2999
2998
  asset: "XVS",
3000
- markets: ["wstETH", "WETH"],
3001
- supplySpeeds: ["222222222222222", "254629629629629"],
3002
- borrowSpeeds: ["0", "594135802469135"],
2999
+ markets: ["wstETH", "WETH", "sfrxETH"],
3000
+ supplySpeeds: ["222222222222222", "254629629629629", "3703703703703"],
3001
+ borrowSpeeds: ["0", "594135802469135", "0"],
3003
3002
  },
3004
3003
  {
3005
3004
  asset: "wstETH",
@@ -3314,24 +3313,6 @@ exports.globalConfig = {
3314
3313
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
3315
3314
  vTokenReceiver: "0x6e74053a3798e0fC9a9775F7995316b27f21c4D2",
3316
3315
  },
3317
- {
3318
- name: "Venus sfrxETH (Liquid Staked ETH)",
3319
- asset: "sfrxETH",
3320
- symbol: "vsfrxETH_LiquidStakedETH",
3321
- rateModel: InterestRateModels.JumpRate.toString(),
3322
- baseRatePerYear: "0",
3323
- multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
3324
- jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
3325
- kink_: (0, utils_1.convertToUnit)("0.40", 18),
3326
- collateralFactor: (0, utils_1.convertToUnit)("0.9", 18),
3327
- liquidationThreshold: (0, utils_1.convertToUnit)("0.93", 18),
3328
- reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
3329
- initialSupply: (0, utils_1.convertToUnit)("1.2", 18),
3330
- supplyCap: (0, utils_1.convertToUnit)(10000, 18),
3331
- borrowCap: (0, utils_1.convertToUnit)(1000, 18),
3332
- reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
3333
- vTokenReceiver: "0x6e74053a3798e0fC9a9775F7995316b27f21c4D2",
3334
- },
3335
3316
  ],
3336
3317
  rewards: [
3337
3318
  // XVS Rewards Over 90 days (648000 blocks)
@@ -3349,11 +3330,9 @@ exports.globalConfig = {
3349
3330
  // 1440 XVS for Borrowers
3350
3331
  // sFRAX: 1440 XVS for Suppliers
3351
3332
  // 960 XVS for Borrowers
3352
- // sfrxETH: 2400 XVS for Suppliers
3353
- // 0 XVS for Borrowers
3354
3333
  {
3355
3334
  asset: "XVS",
3356
- markets: ["WETH", "WBTC", "USDT", "USDC", "crvUSD", "FRAX", "sFRAX", "sfrxETH"],
3335
+ markets: ["WETH", "WBTC", "USDT", "USDC", "crvUSD", "FRAX", "sFRAX"],
3357
3336
  supplySpeeds: [
3358
3337
  "2777777777777777",
3359
3338
  "8333333333333333",
@@ -3362,7 +3341,6 @@ exports.globalConfig = {
3362
3341
  "3703703703703703",
3363
3342
  "1481481481481481",
3364
3343
  "2222222222222222",
3365
- "3703703703703703",
3366
3344
  ],
3367
3345
  borrowSpeeds: [
3368
3346
  "4166666666666666",
@@ -3372,7 +3350,6 @@ exports.globalConfig = {
3372
3350
  "5555555555555555",
3373
3351
  "2222222222222222",
3374
3352
  "1481481481481481",
3375
- "0",
3376
3353
  ],
3377
3354
  },
3378
3355
  {
@@ -3544,6 +3521,24 @@ exports.globalConfig = {
3544
3521
  reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
3545
3522
  vTokenReceiver: "0x7AAd74b7f0d60D5867B59dbD377a71783425af47",
3546
3523
  },
3524
+ {
3525
+ name: "Venus sfrxETH (Liquid Staked ETH)",
3526
+ asset: "sfrxETH",
3527
+ symbol: "vsfrxETH_LiquidStakedETH",
3528
+ rateModel: InterestRateModels.JumpRate.toString(),
3529
+ baseRatePerYear: "0",
3530
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
3531
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
3532
+ kink_: (0, utils_1.convertToUnit)("0.40", 18),
3533
+ collateralFactor: (0, utils_1.convertToUnit)("0.9", 18),
3534
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.93", 18),
3535
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
3536
+ initialSupply: (0, utils_1.convertToUnit)("1.2", 18),
3537
+ supplyCap: (0, utils_1.convertToUnit)(10000, 18),
3538
+ borrowCap: (0, utils_1.convertToUnit)(1000, 18),
3539
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_ETHEREUM,
3540
+ vTokenReceiver: "0x6e74053a3798e0fC9a9775F7995316b27f21c4D2",
3541
+ },
3547
3542
  ],
3548
3543
  rewards: [
3549
3544
  // XVS Rewards Over 90 days (648000 blocks)
@@ -3551,11 +3546,13 @@ exports.globalConfig = {
3551
3546
  // 0 XVS for Borrowers
3552
3547
  // WETH: 16500 XVS for Suppliers
3553
3548
  // 38500 XVS for Borrowers
3549
+ // sfrxETH: 2400 XVS for Suppliers
3550
+ // 0 XVS for Borrowers
3554
3551
  {
3555
3552
  asset: "XVS",
3556
- markets: ["wstETH", "WETH"],
3557
- supplySpeeds: ["22222222222222222", "25462962962962962"],
3558
- borrowSpeeds: ["0", "59413580246913580"],
3553
+ markets: ["wstETH", "WETH", "sfrxETH"],
3554
+ supplySpeeds: ["22222222222222222", "25462962962962962", "3703703703703703"],
3555
+ borrowSpeeds: ["0", "59413580246913580", "0"],
3559
3556
  },
3560
3557
  {
3561
3558
  asset: "wstETH",
@@ -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.4.0-dev.3",
3
+ "version": "3.4.0-dev.4",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",