@venusprotocol/isolated-pools 3.2.0 → 3.3.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.
@@ -3748,6 +3748,366 @@
3748
3748
  }
3749
3749
  ]
3750
3750
  },
3751
+ "JumpRateModelV2_base0bps_slope90bps_jump30000bps_kink9000bps": {
3752
+ "address": "0x8037f793A298789736fc1cb7e3154573647CDD11",
3753
+ "abi": [
3754
+ {
3755
+ "inputs": [
3756
+ {
3757
+ "internalType": "uint256",
3758
+ "name": "baseRatePerYear_",
3759
+ "type": "uint256"
3760
+ },
3761
+ {
3762
+ "internalType": "uint256",
3763
+ "name": "multiplierPerYear_",
3764
+ "type": "uint256"
3765
+ },
3766
+ {
3767
+ "internalType": "uint256",
3768
+ "name": "jumpMultiplierPerYear_",
3769
+ "type": "uint256"
3770
+ },
3771
+ {
3772
+ "internalType": "uint256",
3773
+ "name": "kink_",
3774
+ "type": "uint256"
3775
+ },
3776
+ {
3777
+ "internalType": "contract IAccessControlManagerV8",
3778
+ "name": "accessControlManager_",
3779
+ "type": "address"
3780
+ },
3781
+ {
3782
+ "internalType": "bool",
3783
+ "name": "timeBased_",
3784
+ "type": "bool"
3785
+ },
3786
+ {
3787
+ "internalType": "uint256",
3788
+ "name": "blocksPerYear_",
3789
+ "type": "uint256"
3790
+ }
3791
+ ],
3792
+ "stateMutability": "nonpayable",
3793
+ "type": "constructor"
3794
+ },
3795
+ {
3796
+ "inputs": [],
3797
+ "name": "InvalidBlocksPerYear",
3798
+ "type": "error"
3799
+ },
3800
+ {
3801
+ "inputs": [],
3802
+ "name": "InvalidTimeBasedConfiguration",
3803
+ "type": "error"
3804
+ },
3805
+ {
3806
+ "inputs": [
3807
+ {
3808
+ "internalType": "address",
3809
+ "name": "sender",
3810
+ "type": "address"
3811
+ },
3812
+ {
3813
+ "internalType": "address",
3814
+ "name": "calledContract",
3815
+ "type": "address"
3816
+ },
3817
+ {
3818
+ "internalType": "string",
3819
+ "name": "methodSignature",
3820
+ "type": "string"
3821
+ }
3822
+ ],
3823
+ "name": "Unauthorized",
3824
+ "type": "error"
3825
+ },
3826
+ {
3827
+ "anonymous": false,
3828
+ "inputs": [
3829
+ {
3830
+ "indexed": false,
3831
+ "internalType": "uint256",
3832
+ "name": "baseRatePerBlockOrTimestamp",
3833
+ "type": "uint256"
3834
+ },
3835
+ {
3836
+ "indexed": false,
3837
+ "internalType": "uint256",
3838
+ "name": "multiplierPerBlockOrTimestamp",
3839
+ "type": "uint256"
3840
+ },
3841
+ {
3842
+ "indexed": false,
3843
+ "internalType": "uint256",
3844
+ "name": "jumpMultiplierPerBlockOrTimestamp",
3845
+ "type": "uint256"
3846
+ },
3847
+ {
3848
+ "indexed": false,
3849
+ "internalType": "uint256",
3850
+ "name": "kink",
3851
+ "type": "uint256"
3852
+ }
3853
+ ],
3854
+ "name": "NewInterestParams",
3855
+ "type": "event"
3856
+ },
3857
+ {
3858
+ "inputs": [],
3859
+ "name": "accessControlManager",
3860
+ "outputs": [
3861
+ {
3862
+ "internalType": "contract IAccessControlManagerV8",
3863
+ "name": "",
3864
+ "type": "address"
3865
+ }
3866
+ ],
3867
+ "stateMutability": "view",
3868
+ "type": "function"
3869
+ },
3870
+ {
3871
+ "inputs": [],
3872
+ "name": "baseRatePerBlock",
3873
+ "outputs": [
3874
+ {
3875
+ "internalType": "uint256",
3876
+ "name": "",
3877
+ "type": "uint256"
3878
+ }
3879
+ ],
3880
+ "stateMutability": "view",
3881
+ "type": "function"
3882
+ },
3883
+ {
3884
+ "inputs": [],
3885
+ "name": "blocksOrSecondsPerYear",
3886
+ "outputs": [
3887
+ {
3888
+ "internalType": "uint256",
3889
+ "name": "",
3890
+ "type": "uint256"
3891
+ }
3892
+ ],
3893
+ "stateMutability": "view",
3894
+ "type": "function"
3895
+ },
3896
+ {
3897
+ "inputs": [],
3898
+ "name": "getBlockNumberOrTimestamp",
3899
+ "outputs": [
3900
+ {
3901
+ "internalType": "uint256",
3902
+ "name": "",
3903
+ "type": "uint256"
3904
+ }
3905
+ ],
3906
+ "stateMutability": "view",
3907
+ "type": "function"
3908
+ },
3909
+ {
3910
+ "inputs": [
3911
+ {
3912
+ "internalType": "uint256",
3913
+ "name": "cash",
3914
+ "type": "uint256"
3915
+ },
3916
+ {
3917
+ "internalType": "uint256",
3918
+ "name": "borrows",
3919
+ "type": "uint256"
3920
+ },
3921
+ {
3922
+ "internalType": "uint256",
3923
+ "name": "reserves",
3924
+ "type": "uint256"
3925
+ },
3926
+ {
3927
+ "internalType": "uint256",
3928
+ "name": "badDebt",
3929
+ "type": "uint256"
3930
+ }
3931
+ ],
3932
+ "name": "getBorrowRate",
3933
+ "outputs": [
3934
+ {
3935
+ "internalType": "uint256",
3936
+ "name": "",
3937
+ "type": "uint256"
3938
+ }
3939
+ ],
3940
+ "stateMutability": "view",
3941
+ "type": "function"
3942
+ },
3943
+ {
3944
+ "inputs": [
3945
+ {
3946
+ "internalType": "uint256",
3947
+ "name": "cash",
3948
+ "type": "uint256"
3949
+ },
3950
+ {
3951
+ "internalType": "uint256",
3952
+ "name": "borrows",
3953
+ "type": "uint256"
3954
+ },
3955
+ {
3956
+ "internalType": "uint256",
3957
+ "name": "reserves",
3958
+ "type": "uint256"
3959
+ },
3960
+ {
3961
+ "internalType": "uint256",
3962
+ "name": "reserveFactorMantissa",
3963
+ "type": "uint256"
3964
+ },
3965
+ {
3966
+ "internalType": "uint256",
3967
+ "name": "badDebt",
3968
+ "type": "uint256"
3969
+ }
3970
+ ],
3971
+ "name": "getSupplyRate",
3972
+ "outputs": [
3973
+ {
3974
+ "internalType": "uint256",
3975
+ "name": "",
3976
+ "type": "uint256"
3977
+ }
3978
+ ],
3979
+ "stateMutability": "view",
3980
+ "type": "function"
3981
+ },
3982
+ {
3983
+ "inputs": [],
3984
+ "name": "isInterestRateModel",
3985
+ "outputs": [
3986
+ {
3987
+ "internalType": "bool",
3988
+ "name": "",
3989
+ "type": "bool"
3990
+ }
3991
+ ],
3992
+ "stateMutability": "pure",
3993
+ "type": "function"
3994
+ },
3995
+ {
3996
+ "inputs": [],
3997
+ "name": "isTimeBased",
3998
+ "outputs": [
3999
+ {
4000
+ "internalType": "bool",
4001
+ "name": "",
4002
+ "type": "bool"
4003
+ }
4004
+ ],
4005
+ "stateMutability": "view",
4006
+ "type": "function"
4007
+ },
4008
+ {
4009
+ "inputs": [],
4010
+ "name": "jumpMultiplierPerBlock",
4011
+ "outputs": [
4012
+ {
4013
+ "internalType": "uint256",
4014
+ "name": "",
4015
+ "type": "uint256"
4016
+ }
4017
+ ],
4018
+ "stateMutability": "view",
4019
+ "type": "function"
4020
+ },
4021
+ {
4022
+ "inputs": [],
4023
+ "name": "kink",
4024
+ "outputs": [
4025
+ {
4026
+ "internalType": "uint256",
4027
+ "name": "",
4028
+ "type": "uint256"
4029
+ }
4030
+ ],
4031
+ "stateMutability": "view",
4032
+ "type": "function"
4033
+ },
4034
+ {
4035
+ "inputs": [],
4036
+ "name": "multiplierPerBlock",
4037
+ "outputs": [
4038
+ {
4039
+ "internalType": "uint256",
4040
+ "name": "",
4041
+ "type": "uint256"
4042
+ }
4043
+ ],
4044
+ "stateMutability": "view",
4045
+ "type": "function"
4046
+ },
4047
+ {
4048
+ "inputs": [
4049
+ {
4050
+ "internalType": "uint256",
4051
+ "name": "baseRatePerYear",
4052
+ "type": "uint256"
4053
+ },
4054
+ {
4055
+ "internalType": "uint256",
4056
+ "name": "multiplierPerYear",
4057
+ "type": "uint256"
4058
+ },
4059
+ {
4060
+ "internalType": "uint256",
4061
+ "name": "jumpMultiplierPerYear",
4062
+ "type": "uint256"
4063
+ },
4064
+ {
4065
+ "internalType": "uint256",
4066
+ "name": "kink_",
4067
+ "type": "uint256"
4068
+ }
4069
+ ],
4070
+ "name": "updateJumpRateModel",
4071
+ "outputs": [],
4072
+ "stateMutability": "nonpayable",
4073
+ "type": "function"
4074
+ },
4075
+ {
4076
+ "inputs": [
4077
+ {
4078
+ "internalType": "uint256",
4079
+ "name": "cash",
4080
+ "type": "uint256"
4081
+ },
4082
+ {
4083
+ "internalType": "uint256",
4084
+ "name": "borrows",
4085
+ "type": "uint256"
4086
+ },
4087
+ {
4088
+ "internalType": "uint256",
4089
+ "name": "reserves",
4090
+ "type": "uint256"
4091
+ },
4092
+ {
4093
+ "internalType": "uint256",
4094
+ "name": "badDebt",
4095
+ "type": "uint256"
4096
+ }
4097
+ ],
4098
+ "name": "utilizationRate",
4099
+ "outputs": [
4100
+ {
4101
+ "internalType": "uint256",
4102
+ "name": "",
4103
+ "type": "uint256"
4104
+ }
4105
+ ],
4106
+ "stateMutability": "pure",
4107
+ "type": "function"
4108
+ }
4109
+ ]
4110
+ },
3751
4111
  "JumpRateModelV2_base200bps_slope1000bps_jump25000bps_kink5000bps": {
3752
4112
  "address": "0x0820d5DA817Ac2eAf3757829B255B56354188bd1",
3753
4113
  "abi": [
@@ -2068,10 +2068,10 @@ exports.globalConfig = {
2068
2068
  asset: "WBNB",
2069
2069
  symbol: "vWBNB_LiquidStakedBNB",
2070
2070
  rateModel: InterestRateModels.JumpRate.toString(),
2071
- baseRatePerYear: (0, utils_1.convertToUnit)("0.02", 18),
2072
- multiplierPerYear: (0, utils_1.convertToUnit)("0.2", 18),
2071
+ baseRatePerYear: "0",
2072
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.009", 18),
2073
2073
  jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
2074
- kink_: (0, utils_1.convertToUnit)("0.5", 18),
2074
+ kink_: (0, utils_1.convertToUnit)("0.9", 18),
2075
2075
  collateralFactor: (0, utils_1.convertToUnit)("0.45", 18),
2076
2076
  liquidationThreshold: (0, utils_1.convertToUnit)("0.5", 18),
2077
2077
  reserveFactor: (0, utils_1.convertToUnit)("0.25", 18),
@@ -3,11 +3,7 @@ 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: {
7
- internalType: string;
8
- name: string;
9
- type: string;
10
- }[];
6
+ inputs: never[];
11
7
  name: string;
12
8
  outputs: {
13
9
  internalType: string;
@@ -6,206 +6,6 @@ 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
- },
209
9
  {
210
10
  inputs: [],
211
11
  name: "underlying",
@@ -216,7 +16,7 @@ const _abi = [
216
16
  type: "address",
217
17
  },
218
18
  ],
219
- stateMutability: "nonpayable",
19
+ stateMutability: "view",
220
20
  type: "function",
221
21
  },
222
22
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/isolated-pools",
3
- "version": "3.2.0",
3
+ "version": "3.3.0-dev.1",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",