@venusprotocol/isolated-pools 3.8.0-dev.3 → 3.8.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.
Files changed (44) hide show
  1. package/deployments/arbitrumone/TwoKinks_base0bps_slope1500bps_kink8000bps_slope29000bps_base20bps_kink29000bps_jump30000bps.json +552 -0
  2. package/deployments/arbitrumone.json +352 -0
  3. package/deployments/arbitrumone_addresses.json +1 -0
  4. package/deployments/bscmainnet/JumpRateModelV2_base0bps_slope2000bps_jump25000bps_kink8000bps.json +608 -0
  5. package/deployments/bscmainnet/JumpRateModelV2_base200bps_slope2000bps_jump25000bps_kink8000bps.json +608 -0
  6. package/deployments/bscmainnet.json +825 -105
  7. package/deployments/bscmainnet_addresses.json +2 -0
  8. package/deployments/ethereum/JumpRateModelV2_base0bps_slope1750bps_jump25000bps_kink8000bps.json +608 -0
  9. package/deployments/ethereum/JumpRateModelV2_base0bps_slope2000bps_jump25000bps_kink8000bps.json +608 -0
  10. package/deployments/ethereum/TwoKinks_base0bps_slope1500bps_kink8000bps_slope29000bps_base20bps_kink29000bps_jump30000bps.json +552 -0
  11. package/deployments/ethereum.json +2011 -939
  12. package/deployments/ethereum_addresses.json +3 -0
  13. package/deployments/zksyncmainnet/JumpRateModelV2_base0bps_slope687bps_jump25000bps_kink8000bps.json +668 -0
  14. package/deployments/zksyncmainnet/TwoKinks_base0bps_slope1500bps_kink8000bps_slope29000bps_base20bps_kink29000bps_jump30000bps.json +651 -0
  15. package/deployments/zksyncmainnet/VToken_vwUSDM_Core.json +317 -0
  16. package/deployments/zksyncmainnet/solcInputs/7ee56954f4157666c7d07cfa8db6f8de.json +445 -0
  17. package/deployments/zksyncmainnet/solcInputs/c84b0f085ad65b3aa38a5f0d3790c387.json +448 -0
  18. package/deployments/zksyncmainnet.json +1243 -457
  19. package/deployments/zksyncmainnet_addresses.json +4 -1
  20. package/deployments/zksyncsepolia/JumpRateModelV2_base0bps_slope687bps_jump25000bps_kink8000bps.json +668 -0
  21. package/deployments/zksyncsepolia/MockUSDM.json +519 -0
  22. package/deployments/zksyncsepolia/MockwUSDM.json +576 -0
  23. package/deployments/zksyncsepolia/VToken_vwUSDM_Core.json +317 -0
  24. package/deployments/zksyncsepolia/solcInputs/c84b0f085ad65b3aa38a5f0d3790c387.json +448 -0
  25. package/deployments/zksyncsepolia.json +1160 -89
  26. package/deployments/zksyncsepolia_addresses.json +5 -1
  27. package/dist/deploy/001-deploy-mock-tokens.js +3 -2
  28. package/dist/deploy/009-deploy-vtokens.js +47 -3
  29. package/dist/deploy/019-deploy-ir-models.js +36 -2
  30. package/dist/deployments/arbitrumone.json +352 -0
  31. package/dist/deployments/bscmainnet.json +825 -105
  32. package/dist/deployments/ethereum.json +2011 -939
  33. package/dist/deployments/zksyncmainnet.json +1243 -457
  34. package/dist/deployments/zksyncsepolia.json +1160 -89
  35. package/dist/hardhat.config.js +7 -0
  36. package/dist/helpers/deploymentConfig.d.ts +6 -1
  37. package/dist/helpers/deploymentConfig.js +125 -38
  38. package/dist/helpers/deploymentUtils.d.ts +2 -0
  39. package/dist/helpers/deploymentUtils.js +6 -1
  40. package/dist/typechain/factories/IVToken__factory.d.ts +5 -1
  41. package/dist/typechain/factories/IVToken__factory.js +201 -1
  42. package/package.json +1 -1
  43. package/typechain/IVToken.d.ts +341 -4
  44. package/typechain/factories/IVToken__factory.ts +201 -1
@@ -2832,8 +2832,8 @@
2832
2832
  }
2833
2833
  ]
2834
2834
  },
2835
- "JumpRateModelV2_base0bps_slope875bps_jump8000bps_kink8000bps": {
2836
- "address": "0x6e0f830e7fc78a296B0EbD5694573C2D9f0994B1",
2835
+ "JumpRateModelV2_base0bps_slope687bps_jump25000bps_kink8000bps": {
2836
+ "address": "0x40a0DEC6AcA207F45212B14dE1312cEae6FB3E5A",
2837
2837
  "abi": [
2838
2838
  {
2839
2839
  "inputs": [
@@ -3192,8 +3192,8 @@
3192
3192
  }
3193
3193
  ]
3194
3194
  },
3195
- "JumpRateModelV2_base0bps_slope900bps_jump20000bps_kink4500bps": {
3196
- "address": "0xDe0DdC53BE71B2C67808392088A922AdC4ec3114",
3195
+ "JumpRateModelV2_base0bps_slope875bps_jump8000bps_kink8000bps": {
3196
+ "address": "0x6e0f830e7fc78a296B0EbD5694573C2D9f0994B1",
3197
3197
  "abi": [
3198
3198
  {
3199
3199
  "inputs": [
@@ -3552,8 +3552,8 @@
3552
3552
  }
3553
3553
  ]
3554
3554
  },
3555
- "JumpRateModelV2_base200bps_slope2000bps_jump30000bps_kink4500bps": {
3556
- "address": "0xab2A687A02F5EE7A5b3B52E929705cCA470A0844",
3555
+ "JumpRateModelV2_base0bps_slope900bps_jump20000bps_kink4500bps": {
3556
+ "address": "0xDe0DdC53BE71B2C67808392088A922AdC4ec3114",
3557
3557
  "abi": [
3558
3558
  {
3559
3559
  "inputs": [
@@ -3912,249 +3912,133 @@
3912
3912
  }
3913
3913
  ]
3914
3914
  },
3915
- "NativeTokenGateway_vWETH_Core": {
3916
- "address": "0xeEDE4e1BDaC489BD851970bE3952B729C4238A68",
3915
+ "JumpRateModelV2_base200bps_slope2000bps_jump30000bps_kink4500bps": {
3916
+ "address": "0xab2A687A02F5EE7A5b3B52E929705cCA470A0844",
3917
3917
  "abi": [
3918
3918
  {
3919
3919
  "inputs": [
3920
3920
  {
3921
- "internalType": "contract IVToken",
3922
- "name": "vWrappedNativeToken",
3923
- "type": "address"
3924
- }
3925
- ],
3926
- "stateMutability": "nonpayable",
3927
- "type": "constructor"
3928
- },
3929
- {
3930
- "inputs": [],
3931
- "name": "NativeTokenTransferFailed",
3932
- "type": "error"
3933
- },
3934
- {
3935
- "inputs": [],
3936
- "name": "ZeroAddressNotAllowed",
3937
- "type": "error"
3938
- },
3939
- {
3940
- "inputs": [],
3941
- "name": "ZeroValueNotAllowed",
3942
- "type": "error"
3943
- },
3944
- {
3945
- "anonymous": false,
3946
- "inputs": [
3947
- {
3948
- "indexed": true,
3949
- "internalType": "address",
3950
- "name": "previousOwner",
3951
- "type": "address"
3921
+ "internalType": "uint256",
3922
+ "name": "baseRatePerYear_",
3923
+ "type": "uint256"
3952
3924
  },
3953
3925
  {
3954
- "indexed": true,
3955
- "internalType": "address",
3956
- "name": "newOwner",
3957
- "type": "address"
3958
- }
3959
- ],
3960
- "name": "OwnershipTransferStarted",
3961
- "type": "event"
3962
- },
3963
- {
3964
- "anonymous": false,
3965
- "inputs": [
3966
- {
3967
- "indexed": true,
3968
- "internalType": "address",
3969
- "name": "previousOwner",
3970
- "type": "address"
3926
+ "internalType": "uint256",
3927
+ "name": "multiplierPerYear_",
3928
+ "type": "uint256"
3971
3929
  },
3972
3930
  {
3973
- "indexed": true,
3974
- "internalType": "address",
3975
- "name": "newOwner",
3976
- "type": "address"
3977
- }
3978
- ],
3979
- "name": "OwnershipTransferred",
3980
- "type": "event"
3981
- },
3982
- {
3983
- "anonymous": false,
3984
- "inputs": [
3985
- {
3986
- "indexed": true,
3987
- "internalType": "address",
3988
- "name": "receiver",
3989
- "type": "address"
3931
+ "internalType": "uint256",
3932
+ "name": "jumpMultiplierPerYear_",
3933
+ "type": "uint256"
3990
3934
  },
3991
3935
  {
3992
- "indexed": false,
3993
3936
  "internalType": "uint256",
3994
- "name": "amount",
3937
+ "name": "kink_",
3995
3938
  "type": "uint256"
3996
- }
3997
- ],
3998
- "name": "SweepNative",
3999
- "type": "event"
4000
- },
4001
- {
4002
- "anonymous": false,
4003
- "inputs": [
3939
+ },
4004
3940
  {
4005
- "indexed": true,
4006
- "internalType": "address",
4007
- "name": "token",
3941
+ "internalType": "contract IAccessControlManagerV8",
3942
+ "name": "accessControlManager_",
4008
3943
  "type": "address"
4009
3944
  },
4010
3945
  {
4011
- "indexed": true,
4012
- "internalType": "address",
4013
- "name": "receiver",
4014
- "type": "address"
3946
+ "internalType": "bool",
3947
+ "name": "timeBased_",
3948
+ "type": "bool"
4015
3949
  },
4016
3950
  {
4017
- "indexed": false,
4018
3951
  "internalType": "uint256",
4019
- "name": "amount",
3952
+ "name": "blocksPerYear_",
4020
3953
  "type": "uint256"
4021
3954
  }
4022
3955
  ],
4023
- "name": "SweepToken",
4024
- "type": "event"
3956
+ "stateMutability": "nonpayable",
3957
+ "type": "constructor"
3958
+ },
3959
+ {
3960
+ "inputs": [],
3961
+ "name": "InvalidBlocksPerYear",
3962
+ "type": "error"
3963
+ },
3964
+ {
3965
+ "inputs": [],
3966
+ "name": "InvalidTimeBasedConfiguration",
3967
+ "type": "error"
4025
3968
  },
4026
3969
  {
4027
- "anonymous": false,
4028
3970
  "inputs": [
4029
3971
  {
4030
- "indexed": true,
4031
3972
  "internalType": "address",
4032
3973
  "name": "sender",
4033
3974
  "type": "address"
4034
3975
  },
4035
3976
  {
4036
- "indexed": true,
4037
3977
  "internalType": "address",
4038
- "name": "vToken",
3978
+ "name": "calledContract",
4039
3979
  "type": "address"
4040
3980
  },
4041
3981
  {
4042
- "indexed": false,
4043
- "internalType": "uint256",
4044
- "name": "amount",
4045
- "type": "uint256"
3982
+ "internalType": "string",
3983
+ "name": "methodSignature",
3984
+ "type": "string"
4046
3985
  }
4047
3986
  ],
4048
- "name": "TokensBorrowedAndUnwrapped",
4049
- "type": "event"
3987
+ "name": "Unauthorized",
3988
+ "type": "error"
4050
3989
  },
4051
3990
  {
4052
3991
  "anonymous": false,
4053
3992
  "inputs": [
4054
- {
4055
- "indexed": true,
4056
- "internalType": "address",
4057
- "name": "sender",
4058
- "type": "address"
4059
- },
4060
- {
4061
- "indexed": true,
4062
- "internalType": "address",
4063
- "name": "vToken",
4064
- "type": "address"
4065
- },
4066
3993
  {
4067
3994
  "indexed": false,
4068
3995
  "internalType": "uint256",
4069
- "name": "amount",
3996
+ "name": "baseRatePerBlockOrTimestamp",
4070
3997
  "type": "uint256"
4071
- }
4072
- ],
4073
- "name": "TokensRedeemedAndUnwrapped",
4074
- "type": "event"
4075
- },
4076
- {
4077
- "anonymous": false,
4078
- "inputs": [
4079
- {
4080
- "indexed": true,
4081
- "internalType": "address",
4082
- "name": "sender",
4083
- "type": "address"
4084
- },
4085
- {
4086
- "indexed": true,
4087
- "internalType": "address",
4088
- "name": "vToken",
4089
- "type": "address"
4090
3998
  },
4091
3999
  {
4092
4000
  "indexed": false,
4093
4001
  "internalType": "uint256",
4094
- "name": "amount",
4002
+ "name": "multiplierPerBlockOrTimestamp",
4095
4003
  "type": "uint256"
4096
- }
4097
- ],
4098
- "name": "TokensWrappedAndRepaid",
4099
- "type": "event"
4100
- },
4101
- {
4102
- "anonymous": false,
4103
- "inputs": [
4104
- {
4105
- "indexed": true,
4106
- "internalType": "address",
4107
- "name": "sender",
4108
- "type": "address"
4109
4004
  },
4110
4005
  {
4111
- "indexed": true,
4112
- "internalType": "address",
4113
- "name": "vToken",
4114
- "type": "address"
4006
+ "indexed": false,
4007
+ "internalType": "uint256",
4008
+ "name": "jumpMultiplierPerBlockOrTimestamp",
4009
+ "type": "uint256"
4115
4010
  },
4116
4011
  {
4117
4012
  "indexed": false,
4118
4013
  "internalType": "uint256",
4119
- "name": "amount",
4014
+ "name": "kink",
4120
4015
  "type": "uint256"
4121
4016
  }
4122
4017
  ],
4123
- "name": "TokensWrappedAndSupplied",
4018
+ "name": "NewInterestParams",
4124
4019
  "type": "event"
4125
4020
  },
4126
- {
4127
- "stateMutability": "payable",
4128
- "type": "fallback"
4129
- },
4130
4021
  {
4131
4022
  "inputs": [],
4132
- "name": "acceptOwnership",
4133
- "outputs": [],
4134
- "stateMutability": "nonpayable",
4135
- "type": "function"
4136
- },
4137
- {
4138
- "inputs": [
4023
+ "name": "accessControlManager",
4024
+ "outputs": [
4139
4025
  {
4140
- "internalType": "uint256",
4141
- "name": "borrowAmount",
4142
- "type": "uint256"
4026
+ "internalType": "contract IAccessControlManagerV8",
4027
+ "name": "",
4028
+ "type": "address"
4143
4029
  }
4144
4030
  ],
4145
- "name": "borrowAndUnwrap",
4146
- "outputs": [],
4147
- "stateMutability": "nonpayable",
4031
+ "stateMutability": "view",
4148
4032
  "type": "function"
4149
4033
  },
4150
4034
  {
4151
4035
  "inputs": [],
4152
- "name": "owner",
4036
+ "name": "baseRatePerBlock",
4153
4037
  "outputs": [
4154
4038
  {
4155
- "internalType": "address",
4039
+ "internalType": "uint256",
4156
4040
  "name": "",
4157
- "type": "address"
4041
+ "type": "uint256"
4158
4042
  }
4159
4043
  ],
4160
4044
  "stateMutability": "view",
@@ -4162,40 +4046,516 @@
4162
4046
  },
4163
4047
  {
4164
4048
  "inputs": [],
4165
- "name": "pendingOwner",
4049
+ "name": "blocksOrSecondsPerYear",
4166
4050
  "outputs": [
4167
4051
  {
4168
- "internalType": "address",
4052
+ "internalType": "uint256",
4169
4053
  "name": "",
4170
- "type": "address"
4054
+ "type": "uint256"
4171
4055
  }
4172
4056
  ],
4173
4057
  "stateMutability": "view",
4174
4058
  "type": "function"
4175
4059
  },
4176
4060
  {
4177
- "inputs": [
4061
+ "inputs": [],
4062
+ "name": "getBlockNumberOrTimestamp",
4063
+ "outputs": [
4178
4064
  {
4179
4065
  "internalType": "uint256",
4180
- "name": "redeemTokens",
4066
+ "name": "",
4181
4067
  "type": "uint256"
4182
4068
  }
4183
4069
  ],
4184
- "name": "redeemAndUnwrap",
4185
- "outputs": [],
4186
- "stateMutability": "nonpayable",
4070
+ "stateMutability": "view",
4187
4071
  "type": "function"
4188
4072
  },
4189
4073
  {
4190
4074
  "inputs": [
4191
4075
  {
4192
4076
  "internalType": "uint256",
4193
- "name": "redeemAmount",
4077
+ "name": "cash",
4194
4078
  "type": "uint256"
4195
- }
4196
- ],
4197
- "name": "redeemUnderlyingAndUnwrap",
4198
- "outputs": [],
4079
+ },
4080
+ {
4081
+ "internalType": "uint256",
4082
+ "name": "borrows",
4083
+ "type": "uint256"
4084
+ },
4085
+ {
4086
+ "internalType": "uint256",
4087
+ "name": "reserves",
4088
+ "type": "uint256"
4089
+ },
4090
+ {
4091
+ "internalType": "uint256",
4092
+ "name": "badDebt",
4093
+ "type": "uint256"
4094
+ }
4095
+ ],
4096
+ "name": "getBorrowRate",
4097
+ "outputs": [
4098
+ {
4099
+ "internalType": "uint256",
4100
+ "name": "",
4101
+ "type": "uint256"
4102
+ }
4103
+ ],
4104
+ "stateMutability": "view",
4105
+ "type": "function"
4106
+ },
4107
+ {
4108
+ "inputs": [
4109
+ {
4110
+ "internalType": "uint256",
4111
+ "name": "cash",
4112
+ "type": "uint256"
4113
+ },
4114
+ {
4115
+ "internalType": "uint256",
4116
+ "name": "borrows",
4117
+ "type": "uint256"
4118
+ },
4119
+ {
4120
+ "internalType": "uint256",
4121
+ "name": "reserves",
4122
+ "type": "uint256"
4123
+ },
4124
+ {
4125
+ "internalType": "uint256",
4126
+ "name": "reserveFactorMantissa",
4127
+ "type": "uint256"
4128
+ },
4129
+ {
4130
+ "internalType": "uint256",
4131
+ "name": "badDebt",
4132
+ "type": "uint256"
4133
+ }
4134
+ ],
4135
+ "name": "getSupplyRate",
4136
+ "outputs": [
4137
+ {
4138
+ "internalType": "uint256",
4139
+ "name": "",
4140
+ "type": "uint256"
4141
+ }
4142
+ ],
4143
+ "stateMutability": "view",
4144
+ "type": "function"
4145
+ },
4146
+ {
4147
+ "inputs": [],
4148
+ "name": "isInterestRateModel",
4149
+ "outputs": [
4150
+ {
4151
+ "internalType": "bool",
4152
+ "name": "",
4153
+ "type": "bool"
4154
+ }
4155
+ ],
4156
+ "stateMutability": "pure",
4157
+ "type": "function"
4158
+ },
4159
+ {
4160
+ "inputs": [],
4161
+ "name": "isTimeBased",
4162
+ "outputs": [
4163
+ {
4164
+ "internalType": "bool",
4165
+ "name": "",
4166
+ "type": "bool"
4167
+ }
4168
+ ],
4169
+ "stateMutability": "view",
4170
+ "type": "function"
4171
+ },
4172
+ {
4173
+ "inputs": [],
4174
+ "name": "jumpMultiplierPerBlock",
4175
+ "outputs": [
4176
+ {
4177
+ "internalType": "uint256",
4178
+ "name": "",
4179
+ "type": "uint256"
4180
+ }
4181
+ ],
4182
+ "stateMutability": "view",
4183
+ "type": "function"
4184
+ },
4185
+ {
4186
+ "inputs": [],
4187
+ "name": "kink",
4188
+ "outputs": [
4189
+ {
4190
+ "internalType": "uint256",
4191
+ "name": "",
4192
+ "type": "uint256"
4193
+ }
4194
+ ],
4195
+ "stateMutability": "view",
4196
+ "type": "function"
4197
+ },
4198
+ {
4199
+ "inputs": [],
4200
+ "name": "multiplierPerBlock",
4201
+ "outputs": [
4202
+ {
4203
+ "internalType": "uint256",
4204
+ "name": "",
4205
+ "type": "uint256"
4206
+ }
4207
+ ],
4208
+ "stateMutability": "view",
4209
+ "type": "function"
4210
+ },
4211
+ {
4212
+ "inputs": [
4213
+ {
4214
+ "internalType": "uint256",
4215
+ "name": "baseRatePerYear",
4216
+ "type": "uint256"
4217
+ },
4218
+ {
4219
+ "internalType": "uint256",
4220
+ "name": "multiplierPerYear",
4221
+ "type": "uint256"
4222
+ },
4223
+ {
4224
+ "internalType": "uint256",
4225
+ "name": "jumpMultiplierPerYear",
4226
+ "type": "uint256"
4227
+ },
4228
+ {
4229
+ "internalType": "uint256",
4230
+ "name": "kink_",
4231
+ "type": "uint256"
4232
+ }
4233
+ ],
4234
+ "name": "updateJumpRateModel",
4235
+ "outputs": [],
4236
+ "stateMutability": "nonpayable",
4237
+ "type": "function"
4238
+ },
4239
+ {
4240
+ "inputs": [
4241
+ {
4242
+ "internalType": "uint256",
4243
+ "name": "cash",
4244
+ "type": "uint256"
4245
+ },
4246
+ {
4247
+ "internalType": "uint256",
4248
+ "name": "borrows",
4249
+ "type": "uint256"
4250
+ },
4251
+ {
4252
+ "internalType": "uint256",
4253
+ "name": "reserves",
4254
+ "type": "uint256"
4255
+ },
4256
+ {
4257
+ "internalType": "uint256",
4258
+ "name": "badDebt",
4259
+ "type": "uint256"
4260
+ }
4261
+ ],
4262
+ "name": "utilizationRate",
4263
+ "outputs": [
4264
+ {
4265
+ "internalType": "uint256",
4266
+ "name": "",
4267
+ "type": "uint256"
4268
+ }
4269
+ ],
4270
+ "stateMutability": "pure",
4271
+ "type": "function"
4272
+ }
4273
+ ]
4274
+ },
4275
+ "NativeTokenGateway_vWETH_Core": {
4276
+ "address": "0xeEDE4e1BDaC489BD851970bE3952B729C4238A68",
4277
+ "abi": [
4278
+ {
4279
+ "inputs": [
4280
+ {
4281
+ "internalType": "contract IVToken",
4282
+ "name": "vWrappedNativeToken",
4283
+ "type": "address"
4284
+ }
4285
+ ],
4286
+ "stateMutability": "nonpayable",
4287
+ "type": "constructor"
4288
+ },
4289
+ {
4290
+ "inputs": [],
4291
+ "name": "NativeTokenTransferFailed",
4292
+ "type": "error"
4293
+ },
4294
+ {
4295
+ "inputs": [],
4296
+ "name": "ZeroAddressNotAllowed",
4297
+ "type": "error"
4298
+ },
4299
+ {
4300
+ "inputs": [],
4301
+ "name": "ZeroValueNotAllowed",
4302
+ "type": "error"
4303
+ },
4304
+ {
4305
+ "anonymous": false,
4306
+ "inputs": [
4307
+ {
4308
+ "indexed": true,
4309
+ "internalType": "address",
4310
+ "name": "previousOwner",
4311
+ "type": "address"
4312
+ },
4313
+ {
4314
+ "indexed": true,
4315
+ "internalType": "address",
4316
+ "name": "newOwner",
4317
+ "type": "address"
4318
+ }
4319
+ ],
4320
+ "name": "OwnershipTransferStarted",
4321
+ "type": "event"
4322
+ },
4323
+ {
4324
+ "anonymous": false,
4325
+ "inputs": [
4326
+ {
4327
+ "indexed": true,
4328
+ "internalType": "address",
4329
+ "name": "previousOwner",
4330
+ "type": "address"
4331
+ },
4332
+ {
4333
+ "indexed": true,
4334
+ "internalType": "address",
4335
+ "name": "newOwner",
4336
+ "type": "address"
4337
+ }
4338
+ ],
4339
+ "name": "OwnershipTransferred",
4340
+ "type": "event"
4341
+ },
4342
+ {
4343
+ "anonymous": false,
4344
+ "inputs": [
4345
+ {
4346
+ "indexed": true,
4347
+ "internalType": "address",
4348
+ "name": "receiver",
4349
+ "type": "address"
4350
+ },
4351
+ {
4352
+ "indexed": false,
4353
+ "internalType": "uint256",
4354
+ "name": "amount",
4355
+ "type": "uint256"
4356
+ }
4357
+ ],
4358
+ "name": "SweepNative",
4359
+ "type": "event"
4360
+ },
4361
+ {
4362
+ "anonymous": false,
4363
+ "inputs": [
4364
+ {
4365
+ "indexed": true,
4366
+ "internalType": "address",
4367
+ "name": "token",
4368
+ "type": "address"
4369
+ },
4370
+ {
4371
+ "indexed": true,
4372
+ "internalType": "address",
4373
+ "name": "receiver",
4374
+ "type": "address"
4375
+ },
4376
+ {
4377
+ "indexed": false,
4378
+ "internalType": "uint256",
4379
+ "name": "amount",
4380
+ "type": "uint256"
4381
+ }
4382
+ ],
4383
+ "name": "SweepToken",
4384
+ "type": "event"
4385
+ },
4386
+ {
4387
+ "anonymous": false,
4388
+ "inputs": [
4389
+ {
4390
+ "indexed": true,
4391
+ "internalType": "address",
4392
+ "name": "sender",
4393
+ "type": "address"
4394
+ },
4395
+ {
4396
+ "indexed": true,
4397
+ "internalType": "address",
4398
+ "name": "vToken",
4399
+ "type": "address"
4400
+ },
4401
+ {
4402
+ "indexed": false,
4403
+ "internalType": "uint256",
4404
+ "name": "amount",
4405
+ "type": "uint256"
4406
+ }
4407
+ ],
4408
+ "name": "TokensBorrowedAndUnwrapped",
4409
+ "type": "event"
4410
+ },
4411
+ {
4412
+ "anonymous": false,
4413
+ "inputs": [
4414
+ {
4415
+ "indexed": true,
4416
+ "internalType": "address",
4417
+ "name": "sender",
4418
+ "type": "address"
4419
+ },
4420
+ {
4421
+ "indexed": true,
4422
+ "internalType": "address",
4423
+ "name": "vToken",
4424
+ "type": "address"
4425
+ },
4426
+ {
4427
+ "indexed": false,
4428
+ "internalType": "uint256",
4429
+ "name": "amount",
4430
+ "type": "uint256"
4431
+ }
4432
+ ],
4433
+ "name": "TokensRedeemedAndUnwrapped",
4434
+ "type": "event"
4435
+ },
4436
+ {
4437
+ "anonymous": false,
4438
+ "inputs": [
4439
+ {
4440
+ "indexed": true,
4441
+ "internalType": "address",
4442
+ "name": "sender",
4443
+ "type": "address"
4444
+ },
4445
+ {
4446
+ "indexed": true,
4447
+ "internalType": "address",
4448
+ "name": "vToken",
4449
+ "type": "address"
4450
+ },
4451
+ {
4452
+ "indexed": false,
4453
+ "internalType": "uint256",
4454
+ "name": "amount",
4455
+ "type": "uint256"
4456
+ }
4457
+ ],
4458
+ "name": "TokensWrappedAndRepaid",
4459
+ "type": "event"
4460
+ },
4461
+ {
4462
+ "anonymous": false,
4463
+ "inputs": [
4464
+ {
4465
+ "indexed": true,
4466
+ "internalType": "address",
4467
+ "name": "sender",
4468
+ "type": "address"
4469
+ },
4470
+ {
4471
+ "indexed": true,
4472
+ "internalType": "address",
4473
+ "name": "vToken",
4474
+ "type": "address"
4475
+ },
4476
+ {
4477
+ "indexed": false,
4478
+ "internalType": "uint256",
4479
+ "name": "amount",
4480
+ "type": "uint256"
4481
+ }
4482
+ ],
4483
+ "name": "TokensWrappedAndSupplied",
4484
+ "type": "event"
4485
+ },
4486
+ {
4487
+ "stateMutability": "payable",
4488
+ "type": "fallback"
4489
+ },
4490
+ {
4491
+ "inputs": [],
4492
+ "name": "acceptOwnership",
4493
+ "outputs": [],
4494
+ "stateMutability": "nonpayable",
4495
+ "type": "function"
4496
+ },
4497
+ {
4498
+ "inputs": [
4499
+ {
4500
+ "internalType": "uint256",
4501
+ "name": "borrowAmount",
4502
+ "type": "uint256"
4503
+ }
4504
+ ],
4505
+ "name": "borrowAndUnwrap",
4506
+ "outputs": [],
4507
+ "stateMutability": "nonpayable",
4508
+ "type": "function"
4509
+ },
4510
+ {
4511
+ "inputs": [],
4512
+ "name": "owner",
4513
+ "outputs": [
4514
+ {
4515
+ "internalType": "address",
4516
+ "name": "",
4517
+ "type": "address"
4518
+ }
4519
+ ],
4520
+ "stateMutability": "view",
4521
+ "type": "function"
4522
+ },
4523
+ {
4524
+ "inputs": [],
4525
+ "name": "pendingOwner",
4526
+ "outputs": [
4527
+ {
4528
+ "internalType": "address",
4529
+ "name": "",
4530
+ "type": "address"
4531
+ }
4532
+ ],
4533
+ "stateMutability": "view",
4534
+ "type": "function"
4535
+ },
4536
+ {
4537
+ "inputs": [
4538
+ {
4539
+ "internalType": "uint256",
4540
+ "name": "redeemTokens",
4541
+ "type": "uint256"
4542
+ }
4543
+ ],
4544
+ "name": "redeemAndUnwrap",
4545
+ "outputs": [],
4546
+ "stateMutability": "nonpayable",
4547
+ "type": "function"
4548
+ },
4549
+ {
4550
+ "inputs": [
4551
+ {
4552
+ "internalType": "uint256",
4553
+ "name": "redeemAmount",
4554
+ "type": "uint256"
4555
+ }
4556
+ ],
4557
+ "name": "redeemUnderlyingAndUnwrap",
4558
+ "outputs": [],
4199
4559
  "stateMutability": "nonpayable",
4200
4560
  "type": "function"
4201
4561
  },
@@ -9129,7 +9489,151 @@
9129
9489
  "type": "address"
9130
9490
  }
9131
9491
  ],
9132
- "name": "rewardTokenBorrowState",
9492
+ "name": "rewardTokenBorrowState",
9493
+ "outputs": [
9494
+ {
9495
+ "internalType": "uint224",
9496
+ "name": "index",
9497
+ "type": "uint224"
9498
+ },
9499
+ {
9500
+ "internalType": "uint32",
9501
+ "name": "block",
9502
+ "type": "uint32"
9503
+ },
9504
+ {
9505
+ "internalType": "uint32",
9506
+ "name": "lastRewardingBlock",
9507
+ "type": "uint32"
9508
+ }
9509
+ ],
9510
+ "stateMutability": "view",
9511
+ "type": "function"
9512
+ },
9513
+ {
9514
+ "inputs": [
9515
+ {
9516
+ "internalType": "address",
9517
+ "name": "",
9518
+ "type": "address"
9519
+ }
9520
+ ],
9521
+ "name": "rewardTokenBorrowStateTimeBased",
9522
+ "outputs": [
9523
+ {
9524
+ "internalType": "uint224",
9525
+ "name": "index",
9526
+ "type": "uint224"
9527
+ },
9528
+ {
9529
+ "internalType": "uint256",
9530
+ "name": "timestamp",
9531
+ "type": "uint256"
9532
+ },
9533
+ {
9534
+ "internalType": "uint256",
9535
+ "name": "lastRewardingTimestamp",
9536
+ "type": "uint256"
9537
+ }
9538
+ ],
9539
+ "stateMutability": "view",
9540
+ "type": "function"
9541
+ },
9542
+ {
9543
+ "inputs": [
9544
+ {
9545
+ "internalType": "address",
9546
+ "name": "",
9547
+ "type": "address"
9548
+ },
9549
+ {
9550
+ "internalType": "address",
9551
+ "name": "",
9552
+ "type": "address"
9553
+ }
9554
+ ],
9555
+ "name": "rewardTokenBorrowerIndex",
9556
+ "outputs": [
9557
+ {
9558
+ "internalType": "uint256",
9559
+ "name": "",
9560
+ "type": "uint256"
9561
+ }
9562
+ ],
9563
+ "stateMutability": "view",
9564
+ "type": "function"
9565
+ },
9566
+ {
9567
+ "inputs": [
9568
+ {
9569
+ "internalType": "address",
9570
+ "name": "",
9571
+ "type": "address"
9572
+ }
9573
+ ],
9574
+ "name": "rewardTokenContributorSpeeds",
9575
+ "outputs": [
9576
+ {
9577
+ "internalType": "uint256",
9578
+ "name": "",
9579
+ "type": "uint256"
9580
+ }
9581
+ ],
9582
+ "stateMutability": "view",
9583
+ "type": "function"
9584
+ },
9585
+ {
9586
+ "inputs": [
9587
+ {
9588
+ "internalType": "address",
9589
+ "name": "",
9590
+ "type": "address"
9591
+ },
9592
+ {
9593
+ "internalType": "address",
9594
+ "name": "",
9595
+ "type": "address"
9596
+ }
9597
+ ],
9598
+ "name": "rewardTokenSupplierIndex",
9599
+ "outputs": [
9600
+ {
9601
+ "internalType": "uint256",
9602
+ "name": "",
9603
+ "type": "uint256"
9604
+ }
9605
+ ],
9606
+ "stateMutability": "view",
9607
+ "type": "function"
9608
+ },
9609
+ {
9610
+ "inputs": [
9611
+ {
9612
+ "internalType": "address",
9613
+ "name": "",
9614
+ "type": "address"
9615
+ }
9616
+ ],
9617
+ "name": "rewardTokenSupplySpeeds",
9618
+ "outputs": [
9619
+ {
9620
+ "internalType": "uint256",
9621
+ "name": "",
9622
+ "type": "uint256"
9623
+ }
9624
+ ],
9625
+ "stateMutability": "view",
9626
+ "type": "function"
9627
+ },
9628
+ {
9629
+ "inputs": [
9630
+ {
9631
+ "internalType": "address",
9632
+ "name": "",
9633
+ "type": "address"
9634
+ }
9635
+ ],
9636
+ "name": "rewardTokenSupplyState",
9133
9637
  "outputs": [
9134
9638
  {
9135
9639
  "internalType": "uint224",
@@ -9158,7 +9662,7 @@
9158
9662
  "type": "address"
9159
9663
  }
9160
9664
  ],
9161
- "name": "rewardTokenBorrowStateTimeBased",
9665
+ "name": "rewardTokenSupplyStateTimeBased",
9162
9666
  "outputs": [
9163
9667
  {
9164
9668
  "internalType": "uint224",
@@ -9183,155 +9687,310 @@
9183
9687
  "inputs": [
9184
9688
  {
9185
9689
  "internalType": "address",
9186
- "name": "",
9690
+ "name": "accessControlManager_",
9187
9691
  "type": "address"
9188
- },
9692
+ }
9693
+ ],
9694
+ "name": "setAccessControlManager",
9695
+ "outputs": [],
9696
+ "stateMutability": "nonpayable",
9697
+ "type": "function"
9698
+ },
9699
+ {
9700
+ "inputs": [
9189
9701
  {
9190
9702
  "internalType": "address",
9191
- "name": "",
9703
+ "name": "contributor",
9192
9704
  "type": "address"
9193
- }
9194
- ],
9195
- "name": "rewardTokenBorrowerIndex",
9196
- "outputs": [
9705
+ },
9197
9706
  {
9198
9707
  "internalType": "uint256",
9199
- "name": "",
9708
+ "name": "rewardTokenSpeed",
9200
9709
  "type": "uint256"
9201
9710
  }
9202
9711
  ],
9203
- "stateMutability": "view",
9712
+ "name": "setContributorRewardTokenSpeed",
9713
+ "outputs": [],
9714
+ "stateMutability": "nonpayable",
9204
9715
  "type": "function"
9205
9716
  },
9206
9717
  {
9207
9718
  "inputs": [
9208
9719
  {
9209
- "internalType": "address",
9210
- "name": "",
9211
- "type": "address"
9720
+ "internalType": "contract VToken[]",
9721
+ "name": "vTokens",
9722
+ "type": "address[]"
9723
+ },
9724
+ {
9725
+ "internalType": "uint256[]",
9726
+ "name": "supplyLastRewardingBlockTimestamps",
9727
+ "type": "uint256[]"
9728
+ },
9729
+ {
9730
+ "internalType": "uint256[]",
9731
+ "name": "borrowLastRewardingBlockTimestamps",
9732
+ "type": "uint256[]"
9212
9733
  }
9213
9734
  ],
9214
- "name": "rewardTokenContributorSpeeds",
9215
- "outputs": [
9735
+ "name": "setLastRewardingBlockTimestamps",
9736
+ "outputs": [],
9737
+ "stateMutability": "nonpayable",
9738
+ "type": "function"
9739
+ },
9740
+ {
9741
+ "inputs": [
9742
+ {
9743
+ "internalType": "contract VToken[]",
9744
+ "name": "vTokens",
9745
+ "type": "address[]"
9746
+ },
9747
+ {
9748
+ "internalType": "uint32[]",
9749
+ "name": "supplyLastRewardingBlocks",
9750
+ "type": "uint32[]"
9751
+ },
9752
+ {
9753
+ "internalType": "uint32[]",
9754
+ "name": "borrowLastRewardingBlocks",
9755
+ "type": "uint32[]"
9756
+ }
9757
+ ],
9758
+ "name": "setLastRewardingBlocks",
9759
+ "outputs": [],
9760
+ "stateMutability": "nonpayable",
9761
+ "type": "function"
9762
+ },
9763
+ {
9764
+ "inputs": [
9216
9765
  {
9217
9766
  "internalType": "uint256",
9218
- "name": "",
9767
+ "name": "limit",
9219
9768
  "type": "uint256"
9220
9769
  }
9221
9770
  ],
9222
- "stateMutability": "view",
9771
+ "name": "setMaxLoopsLimit",
9772
+ "outputs": [],
9773
+ "stateMutability": "nonpayable",
9223
9774
  "type": "function"
9224
9775
  },
9225
9776
  {
9226
9777
  "inputs": [
9227
9778
  {
9228
- "internalType": "address",
9229
- "name": "",
9230
- "type": "address"
9779
+ "internalType": "contract VToken[]",
9780
+ "name": "vTokens",
9781
+ "type": "address[]"
9782
+ },
9783
+ {
9784
+ "internalType": "uint256[]",
9785
+ "name": "supplySpeeds",
9786
+ "type": "uint256[]"
9231
9787
  },
9788
+ {
9789
+ "internalType": "uint256[]",
9790
+ "name": "borrowSpeeds",
9791
+ "type": "uint256[]"
9792
+ }
9793
+ ],
9794
+ "name": "setRewardTokenSpeeds",
9795
+ "outputs": [],
9796
+ "stateMutability": "nonpayable",
9797
+ "type": "function"
9798
+ },
9799
+ {
9800
+ "inputs": [
9232
9801
  {
9233
9802
  "internalType": "address",
9234
- "name": "",
9803
+ "name": "newOwner",
9235
9804
  "type": "address"
9236
9805
  }
9237
9806
  ],
9238
- "name": "rewardTokenSupplierIndex",
9239
- "outputs": [
9807
+ "name": "transferOwnership",
9808
+ "outputs": [],
9809
+ "stateMutability": "nonpayable",
9810
+ "type": "function"
9811
+ },
9812
+ {
9813
+ "inputs": [
9240
9814
  {
9241
- "internalType": "uint256",
9242
- "name": "",
9243
- "type": "uint256"
9815
+ "internalType": "address",
9816
+ "name": "contributor",
9817
+ "type": "address"
9244
9818
  }
9245
9819
  ],
9246
- "stateMutability": "view",
9820
+ "name": "updateContributorRewards",
9821
+ "outputs": [],
9822
+ "stateMutability": "nonpayable",
9247
9823
  "type": "function"
9248
9824
  },
9249
9825
  {
9250
9826
  "inputs": [
9251
9827
  {
9252
9828
  "internalType": "address",
9253
- "name": "",
9829
+ "name": "vToken",
9254
9830
  "type": "address"
9831
+ },
9832
+ {
9833
+ "components": [
9834
+ {
9835
+ "internalType": "uint256",
9836
+ "name": "mantissa",
9837
+ "type": "uint256"
9838
+ }
9839
+ ],
9840
+ "internalType": "struct ExponentialNoError.Exp",
9841
+ "name": "marketBorrowIndex",
9842
+ "type": "tuple"
9255
9843
  }
9256
9844
  ],
9257
- "name": "rewardTokenSupplySpeeds",
9258
- "outputs": [
9845
+ "name": "updateRewardTokenBorrowIndex",
9846
+ "outputs": [],
9847
+ "stateMutability": "nonpayable",
9848
+ "type": "function"
9849
+ },
9850
+ {
9851
+ "inputs": [
9259
9852
  {
9260
- "internalType": "uint256",
9261
- "name": "",
9262
- "type": "uint256"
9853
+ "internalType": "address",
9854
+ "name": "vToken",
9855
+ "type": "address"
9263
9856
  }
9264
9857
  ],
9265
- "stateMutability": "view",
9858
+ "name": "updateRewardTokenSupplyIndex",
9859
+ "outputs": [],
9860
+ "stateMutability": "nonpayable",
9266
9861
  "type": "function"
9267
9862
  },
9268
9863
  {
9269
9864
  "inputs": [
9270
9865
  {
9271
9866
  "internalType": "address",
9272
- "name": "",
9867
+ "name": "_logic",
9868
+ "type": "address"
9869
+ },
9870
+ {
9871
+ "internalType": "address",
9872
+ "name": "admin_",
9273
9873
  "type": "address"
9874
+ },
9875
+ {
9876
+ "internalType": "bytes",
9877
+ "name": "_data",
9878
+ "type": "bytes"
9274
9879
  }
9275
9880
  ],
9276
- "name": "rewardTokenSupplyState",
9277
- "outputs": [
9881
+ "stateMutability": "payable",
9882
+ "type": "constructor"
9883
+ }
9884
+ ]
9885
+ },
9886
+ "RewardsDistributor_Core_0_Proxy": {
9887
+ "address": "0x7C7846A74AB38A8d554Bc5f7652eCf8Efb58c894",
9888
+ "abi": [
9889
+ {
9890
+ "inputs": [
9278
9891
  {
9279
- "internalType": "uint224",
9280
- "name": "index",
9281
- "type": "uint224"
9892
+ "internalType": "address",
9893
+ "name": "_logic",
9894
+ "type": "address"
9282
9895
  },
9283
9896
  {
9284
- "internalType": "uint32",
9285
- "name": "block",
9286
- "type": "uint32"
9897
+ "internalType": "address",
9898
+ "name": "admin_",
9899
+ "type": "address"
9287
9900
  },
9288
9901
  {
9289
- "internalType": "uint32",
9290
- "name": "lastRewardingBlock",
9291
- "type": "uint32"
9902
+ "internalType": "bytes",
9903
+ "name": "_data",
9904
+ "type": "bytes"
9292
9905
  }
9293
9906
  ],
9294
- "stateMutability": "view",
9295
- "type": "function"
9907
+ "stateMutability": "payable",
9908
+ "type": "constructor"
9909
+ },
9910
+ {
9911
+ "anonymous": false,
9912
+ "inputs": [
9913
+ {
9914
+ "indexed": false,
9915
+ "internalType": "address",
9916
+ "name": "previousAdmin",
9917
+ "type": "address"
9918
+ },
9919
+ {
9920
+ "indexed": false,
9921
+ "internalType": "address",
9922
+ "name": "newAdmin",
9923
+ "type": "address"
9924
+ }
9925
+ ],
9926
+ "name": "AdminChanged",
9927
+ "type": "event"
9928
+ },
9929
+ {
9930
+ "anonymous": false,
9931
+ "inputs": [
9932
+ {
9933
+ "indexed": true,
9934
+ "internalType": "address",
9935
+ "name": "beacon",
9936
+ "type": "address"
9937
+ }
9938
+ ],
9939
+ "name": "BeaconUpgraded",
9940
+ "type": "event"
9941
+ },
9942
+ {
9943
+ "anonymous": false,
9944
+ "inputs": [
9945
+ {
9946
+ "indexed": true,
9947
+ "internalType": "address",
9948
+ "name": "implementation",
9949
+ "type": "address"
9950
+ }
9951
+ ],
9952
+ "name": "Upgraded",
9953
+ "type": "event"
9954
+ },
9955
+ {
9956
+ "stateMutability": "payable",
9957
+ "type": "fallback"
9296
9958
  },
9297
9959
  {
9298
- "inputs": [
9960
+ "inputs": [],
9961
+ "name": "admin",
9962
+ "outputs": [
9299
9963
  {
9300
9964
  "internalType": "address",
9301
- "name": "",
9965
+ "name": "admin_",
9302
9966
  "type": "address"
9303
9967
  }
9304
9968
  ],
9305
- "name": "rewardTokenSupplyStateTimeBased",
9969
+ "stateMutability": "nonpayable",
9970
+ "type": "function"
9971
+ },
9972
+ {
9973
+ "inputs": [],
9974
+ "name": "implementation",
9306
9975
  "outputs": [
9307
9976
  {
9308
- "internalType": "uint224",
9309
- "name": "index",
9310
- "type": "uint224"
9311
- },
9312
- {
9313
- "internalType": "uint256",
9314
- "name": "timestamp",
9315
- "type": "uint256"
9316
- },
9317
- {
9318
- "internalType": "uint256",
9319
- "name": "lastRewardingTimestamp",
9320
- "type": "uint256"
9977
+ "internalType": "address",
9978
+ "name": "implementation_",
9979
+ "type": "address"
9321
9980
  }
9322
9981
  ],
9323
- "stateMutability": "view",
9982
+ "stateMutability": "nonpayable",
9324
9983
  "type": "function"
9325
9984
  },
9326
9985
  {
9327
9986
  "inputs": [
9328
9987
  {
9329
9988
  "internalType": "address",
9330
- "name": "accessControlManager_",
9989
+ "name": "newImplementation",
9331
9990
  "type": "address"
9332
9991
  }
9333
9992
  ],
9334
- "name": "setAccessControlManager",
9993
+ "name": "upgradeTo",
9335
9994
  "outputs": [],
9336
9995
  "stateMutability": "nonpayable",
9337
9996
  "type": "function"
@@ -9340,322 +9999,375 @@
9340
9999
  "inputs": [
9341
10000
  {
9342
10001
  "internalType": "address",
9343
- "name": "contributor",
10002
+ "name": "newImplementation",
9344
10003
  "type": "address"
9345
10004
  },
9346
10005
  {
9347
- "internalType": "uint256",
9348
- "name": "rewardTokenSpeed",
9349
- "type": "uint256"
10006
+ "internalType": "bytes",
10007
+ "name": "data",
10008
+ "type": "bytes"
9350
10009
  }
9351
10010
  ],
9352
- "name": "setContributorRewardTokenSpeed",
10011
+ "name": "upgradeToAndCall",
9353
10012
  "outputs": [],
9354
- "stateMutability": "nonpayable",
10013
+ "stateMutability": "payable",
9355
10014
  "type": "function"
9356
10015
  },
10016
+ {
10017
+ "stateMutability": "payable",
10018
+ "type": "receive"
10019
+ }
10020
+ ]
10021
+ },
10022
+ "TwoKinks_base0bps_slope1500bps_kink8000bps_slope29000bps_base20bps_kink29000bps_jump30000bps": {
10023
+ "address": "0x61E98E6a1F37649543156DC995E0dfe466B31a2e",
10024
+ "abi": [
9357
10025
  {
9358
10026
  "inputs": [
9359
10027
  {
9360
- "internalType": "contract VToken[]",
9361
- "name": "vTokens",
9362
- "type": "address[]"
10028
+ "internalType": "int256",
10029
+ "name": "baseRatePerYear_",
10030
+ "type": "int256"
9363
10031
  },
9364
10032
  {
9365
- "internalType": "uint256[]",
9366
- "name": "supplyLastRewardingBlockTimestamps",
9367
- "type": "uint256[]"
10033
+ "internalType": "int256",
10034
+ "name": "multiplierPerYear_",
10035
+ "type": "int256"
9368
10036
  },
9369
10037
  {
9370
- "internalType": "uint256[]",
9371
- "name": "borrowLastRewardingBlockTimestamps",
9372
- "type": "uint256[]"
9373
- }
9374
- ],
9375
- "name": "setLastRewardingBlockTimestamps",
9376
- "outputs": [],
9377
- "stateMutability": "nonpayable",
9378
- "type": "function"
9379
- },
9380
- {
9381
- "inputs": [
10038
+ "internalType": "int256",
10039
+ "name": "kink1_",
10040
+ "type": "int256"
10041
+ },
9382
10042
  {
9383
- "internalType": "contract VToken[]",
9384
- "name": "vTokens",
9385
- "type": "address[]"
10043
+ "internalType": "int256",
10044
+ "name": "multiplier2PerYear_",
10045
+ "type": "int256"
9386
10046
  },
9387
10047
  {
9388
- "internalType": "uint32[]",
9389
- "name": "supplyLastRewardingBlocks",
9390
- "type": "uint32[]"
10048
+ "internalType": "int256",
10049
+ "name": "baseRate2PerYear_",
10050
+ "type": "int256"
9391
10051
  },
9392
10052
  {
9393
- "internalType": "uint32[]",
9394
- "name": "borrowLastRewardingBlocks",
9395
- "type": "uint32[]"
10053
+ "internalType": "int256",
10054
+ "name": "kink2_",
10055
+ "type": "int256"
10056
+ },
10057
+ {
10058
+ "internalType": "int256",
10059
+ "name": "jumpMultiplierPerYear_",
10060
+ "type": "int256"
10061
+ },
10062
+ {
10063
+ "internalType": "bool",
10064
+ "name": "timeBased_",
10065
+ "type": "bool"
10066
+ },
10067
+ {
10068
+ "internalType": "uint256",
10069
+ "name": "blocksPerYear_",
10070
+ "type": "uint256"
9396
10071
  }
9397
10072
  ],
9398
- "name": "setLastRewardingBlocks",
9399
- "outputs": [],
9400
10073
  "stateMutability": "nonpayable",
9401
- "type": "function"
10074
+ "type": "constructor"
9402
10075
  },
9403
10076
  {
9404
- "inputs": [
10077
+ "inputs": [],
10078
+ "name": "InvalidBlocksPerYear",
10079
+ "type": "error"
10080
+ },
10081
+ {
10082
+ "inputs": [],
10083
+ "name": "InvalidKink",
10084
+ "type": "error"
10085
+ },
10086
+ {
10087
+ "inputs": [],
10088
+ "name": "InvalidTimeBasedConfiguration",
10089
+ "type": "error"
10090
+ },
10091
+ {
10092
+ "inputs": [],
10093
+ "name": "NegativeValueNotAllowed",
10094
+ "type": "error"
10095
+ },
10096
+ {
10097
+ "inputs": [],
10098
+ "name": "BASE_RATE_2_PER_BLOCK_OR_SECOND",
10099
+ "outputs": [
9405
10100
  {
9406
- "internalType": "uint256",
9407
- "name": "limit",
9408
- "type": "uint256"
10101
+ "internalType": "int256",
10102
+ "name": "",
10103
+ "type": "int256"
9409
10104
  }
9410
10105
  ],
9411
- "name": "setMaxLoopsLimit",
9412
- "outputs": [],
9413
- "stateMutability": "nonpayable",
10106
+ "stateMutability": "view",
9414
10107
  "type": "function"
9415
10108
  },
9416
10109
  {
9417
- "inputs": [
9418
- {
9419
- "internalType": "contract VToken[]",
9420
- "name": "vTokens",
9421
- "type": "address[]"
9422
- },
10110
+ "inputs": [],
10111
+ "name": "BASE_RATE_PER_BLOCK_OR_SECOND",
10112
+ "outputs": [
9423
10113
  {
9424
- "internalType": "uint256[]",
9425
- "name": "supplySpeeds",
9426
- "type": "uint256[]"
9427
- },
10114
+ "internalType": "int256",
10115
+ "name": "",
10116
+ "type": "int256"
10117
+ }
10118
+ ],
10119
+ "stateMutability": "view",
10120
+ "type": "function"
10121
+ },
10122
+ {
10123
+ "inputs": [],
10124
+ "name": "JUMP_MULTIPLIER_PER_BLOCK_OR_SECOND",
10125
+ "outputs": [
9428
10126
  {
9429
- "internalType": "uint256[]",
9430
- "name": "borrowSpeeds",
9431
- "type": "uint256[]"
10127
+ "internalType": "int256",
10128
+ "name": "",
10129
+ "type": "int256"
9432
10130
  }
9433
10131
  ],
9434
- "name": "setRewardTokenSpeeds",
9435
- "outputs": [],
9436
- "stateMutability": "nonpayable",
10132
+ "stateMutability": "view",
9437
10133
  "type": "function"
9438
10134
  },
9439
10135
  {
9440
- "inputs": [
10136
+ "inputs": [],
10137
+ "name": "KINK_1",
10138
+ "outputs": [
9441
10139
  {
9442
- "internalType": "address",
9443
- "name": "newOwner",
9444
- "type": "address"
10140
+ "internalType": "int256",
10141
+ "name": "",
10142
+ "type": "int256"
9445
10143
  }
9446
10144
  ],
9447
- "name": "transferOwnership",
9448
- "outputs": [],
9449
- "stateMutability": "nonpayable",
10145
+ "stateMutability": "view",
9450
10146
  "type": "function"
9451
10147
  },
9452
10148
  {
9453
- "inputs": [
10149
+ "inputs": [],
10150
+ "name": "KINK_2",
10151
+ "outputs": [
9454
10152
  {
9455
- "internalType": "address",
9456
- "name": "contributor",
9457
- "type": "address"
10153
+ "internalType": "int256",
10154
+ "name": "",
10155
+ "type": "int256"
9458
10156
  }
9459
10157
  ],
9460
- "name": "updateContributorRewards",
9461
- "outputs": [],
9462
- "stateMutability": "nonpayable",
10158
+ "stateMutability": "view",
9463
10159
  "type": "function"
9464
10160
  },
9465
10161
  {
9466
- "inputs": [
10162
+ "inputs": [],
10163
+ "name": "MULTIPLIER_2_PER_BLOCK_OR_SECOND",
10164
+ "outputs": [
9467
10165
  {
9468
- "internalType": "address",
9469
- "name": "vToken",
9470
- "type": "address"
9471
- },
10166
+ "internalType": "int256",
10167
+ "name": "",
10168
+ "type": "int256"
10169
+ }
10170
+ ],
10171
+ "stateMutability": "view",
10172
+ "type": "function"
10173
+ },
10174
+ {
10175
+ "inputs": [],
10176
+ "name": "MULTIPLIER_PER_BLOCK_OR_SECOND",
10177
+ "outputs": [
9472
10178
  {
9473
- "components": [
9474
- {
9475
- "internalType": "uint256",
9476
- "name": "mantissa",
9477
- "type": "uint256"
9478
- }
9479
- ],
9480
- "internalType": "struct ExponentialNoError.Exp",
9481
- "name": "marketBorrowIndex",
9482
- "type": "tuple"
10179
+ "internalType": "int256",
10180
+ "name": "",
10181
+ "type": "int256"
9483
10182
  }
9484
10183
  ],
9485
- "name": "updateRewardTokenBorrowIndex",
9486
- "outputs": [],
9487
- "stateMutability": "nonpayable",
10184
+ "stateMutability": "view",
9488
10185
  "type": "function"
9489
10186
  },
9490
10187
  {
9491
- "inputs": [
10188
+ "inputs": [],
10189
+ "name": "RATE_1",
10190
+ "outputs": [
9492
10191
  {
9493
- "internalType": "address",
9494
- "name": "vToken",
9495
- "type": "address"
10192
+ "internalType": "int256",
10193
+ "name": "",
10194
+ "type": "int256"
9496
10195
  }
9497
10196
  ],
9498
- "name": "updateRewardTokenSupplyIndex",
9499
- "outputs": [],
9500
- "stateMutability": "nonpayable",
10197
+ "stateMutability": "view",
9501
10198
  "type": "function"
9502
10199
  },
9503
10200
  {
9504
- "inputs": [
10201
+ "inputs": [],
10202
+ "name": "RATE_2",
10203
+ "outputs": [
9505
10204
  {
9506
- "internalType": "address",
9507
- "name": "_logic",
9508
- "type": "address"
9509
- },
10205
+ "internalType": "int256",
10206
+ "name": "",
10207
+ "type": "int256"
10208
+ }
10209
+ ],
10210
+ "stateMutability": "view",
10211
+ "type": "function"
10212
+ },
10213
+ {
10214
+ "inputs": [],
10215
+ "name": "blocksOrSecondsPerYear",
10216
+ "outputs": [
9510
10217
  {
9511
- "internalType": "address",
9512
- "name": "admin_",
9513
- "type": "address"
9514
- },
10218
+ "internalType": "uint256",
10219
+ "name": "",
10220
+ "type": "uint256"
10221
+ }
10222
+ ],
10223
+ "stateMutability": "view",
10224
+ "type": "function"
10225
+ },
10226
+ {
10227
+ "inputs": [],
10228
+ "name": "getBlockNumberOrTimestamp",
10229
+ "outputs": [
9515
10230
  {
9516
- "internalType": "bytes",
9517
- "name": "_data",
9518
- "type": "bytes"
10231
+ "internalType": "uint256",
10232
+ "name": "",
10233
+ "type": "uint256"
9519
10234
  }
9520
10235
  ],
9521
- "stateMutability": "payable",
9522
- "type": "constructor"
9523
- }
9524
- ]
9525
- },
9526
- "RewardsDistributor_Core_0_Proxy": {
9527
- "address": "0x7C7846A74AB38A8d554Bc5f7652eCf8Efb58c894",
9528
- "abi": [
10236
+ "stateMutability": "view",
10237
+ "type": "function"
10238
+ },
9529
10239
  {
9530
10240
  "inputs": [
9531
10241
  {
9532
- "internalType": "address",
9533
- "name": "_logic",
9534
- "type": "address"
10242
+ "internalType": "uint256",
10243
+ "name": "cash",
10244
+ "type": "uint256"
9535
10245
  },
9536
10246
  {
9537
- "internalType": "address",
9538
- "name": "admin_",
9539
- "type": "address"
10247
+ "internalType": "uint256",
10248
+ "name": "borrows",
10249
+ "type": "uint256"
9540
10250
  },
9541
10251
  {
9542
- "internalType": "bytes",
9543
- "name": "_data",
9544
- "type": "bytes"
9545
- }
9546
- ],
9547
- "stateMutability": "payable",
9548
- "type": "constructor"
9549
- },
9550
- {
9551
- "anonymous": false,
9552
- "inputs": [
9553
- {
9554
- "indexed": false,
9555
- "internalType": "address",
9556
- "name": "previousAdmin",
9557
- "type": "address"
10252
+ "internalType": "uint256",
10253
+ "name": "reserves",
10254
+ "type": "uint256"
9558
10255
  },
9559
10256
  {
9560
- "indexed": false,
9561
- "internalType": "address",
9562
- "name": "newAdmin",
9563
- "type": "address"
10257
+ "internalType": "uint256",
10258
+ "name": "badDebt",
10259
+ "type": "uint256"
9564
10260
  }
9565
10261
  ],
9566
- "name": "AdminChanged",
9567
- "type": "event"
9568
- },
9569
- {
9570
- "anonymous": false,
9571
- "inputs": [
10262
+ "name": "getBorrowRate",
10263
+ "outputs": [
9572
10264
  {
9573
- "indexed": true,
9574
- "internalType": "address",
9575
- "name": "beacon",
9576
- "type": "address"
10265
+ "internalType": "uint256",
10266
+ "name": "",
10267
+ "type": "uint256"
9577
10268
  }
9578
10269
  ],
9579
- "name": "BeaconUpgraded",
9580
- "type": "event"
10270
+ "stateMutability": "view",
10271
+ "type": "function"
9581
10272
  },
9582
10273
  {
9583
- "anonymous": false,
9584
10274
  "inputs": [
9585
10275
  {
9586
- "indexed": true,
9587
- "internalType": "address",
9588
- "name": "implementation",
9589
- "type": "address"
10276
+ "internalType": "uint256",
10277
+ "name": "cash",
10278
+ "type": "uint256"
10279
+ },
10280
+ {
10281
+ "internalType": "uint256",
10282
+ "name": "borrows",
10283
+ "type": "uint256"
10284
+ },
10285
+ {
10286
+ "internalType": "uint256",
10287
+ "name": "reserves",
10288
+ "type": "uint256"
10289
+ },
10290
+ {
10291
+ "internalType": "uint256",
10292
+ "name": "reserveFactorMantissa",
10293
+ "type": "uint256"
10294
+ },
10295
+ {
10296
+ "internalType": "uint256",
10297
+ "name": "badDebt",
10298
+ "type": "uint256"
9590
10299
  }
9591
10300
  ],
9592
- "name": "Upgraded",
9593
- "type": "event"
9594
- },
9595
- {
9596
- "stateMutability": "payable",
9597
- "type": "fallback"
9598
- },
9599
- {
9600
- "inputs": [],
9601
- "name": "admin",
10301
+ "name": "getSupplyRate",
9602
10302
  "outputs": [
9603
10303
  {
9604
- "internalType": "address",
9605
- "name": "admin_",
9606
- "type": "address"
10304
+ "internalType": "uint256",
10305
+ "name": "",
10306
+ "type": "uint256"
9607
10307
  }
9608
10308
  ],
9609
- "stateMutability": "nonpayable",
10309
+ "stateMutability": "view",
9610
10310
  "type": "function"
9611
10311
  },
9612
10312
  {
9613
10313
  "inputs": [],
9614
- "name": "implementation",
10314
+ "name": "isInterestRateModel",
9615
10315
  "outputs": [
9616
10316
  {
9617
- "internalType": "address",
9618
- "name": "implementation_",
9619
- "type": "address"
10317
+ "internalType": "bool",
10318
+ "name": "",
10319
+ "type": "bool"
9620
10320
  }
9621
10321
  ],
9622
- "stateMutability": "nonpayable",
10322
+ "stateMutability": "pure",
9623
10323
  "type": "function"
9624
10324
  },
9625
10325
  {
9626
- "inputs": [
10326
+ "inputs": [],
10327
+ "name": "isTimeBased",
10328
+ "outputs": [
9627
10329
  {
9628
- "internalType": "address",
9629
- "name": "newImplementation",
9630
- "type": "address"
10330
+ "internalType": "bool",
10331
+ "name": "",
10332
+ "type": "bool"
9631
10333
  }
9632
10334
  ],
9633
- "name": "upgradeTo",
9634
- "outputs": [],
9635
- "stateMutability": "nonpayable",
10335
+ "stateMutability": "view",
9636
10336
  "type": "function"
9637
10337
  },
9638
10338
  {
9639
10339
  "inputs": [
9640
10340
  {
9641
- "internalType": "address",
9642
- "name": "newImplementation",
9643
- "type": "address"
10341
+ "internalType": "uint256",
10342
+ "name": "cash",
10343
+ "type": "uint256"
9644
10344
  },
9645
10345
  {
9646
- "internalType": "bytes",
9647
- "name": "data",
9648
- "type": "bytes"
10346
+ "internalType": "uint256",
10347
+ "name": "borrows",
10348
+ "type": "uint256"
10349
+ },
10350
+ {
10351
+ "internalType": "uint256",
10352
+ "name": "reserves",
10353
+ "type": "uint256"
10354
+ },
10355
+ {
10356
+ "internalType": "uint256",
10357
+ "name": "badDebt",
10358
+ "type": "uint256"
9649
10359
  }
9650
10360
  ],
9651
- "name": "upgradeToAndCall",
9652
- "outputs": [],
9653
- "stateMutability": "payable",
10361
+ "name": "utilizationRate",
10362
+ "outputs": [
10363
+ {
10364
+ "internalType": "uint256",
10365
+ "name": "",
10366
+ "type": "uint256"
10367
+ }
10368
+ ],
10369
+ "stateMutability": "pure",
9654
10370
  "type": "function"
9655
- },
9656
- {
9657
- "stateMutability": "payable",
9658
- "type": "receive"
9659
10371
  }
9660
10372
  ]
9661
10373
  },
@@ -12278,6 +12990,80 @@
12278
12990
  "type": "receive"
12279
12991
  }
12280
12992
  ]
12993
+ },
12994
+ "VToken_vwUSDM_Core": {
12995
+ "address": "0x183dE3C349fCf546aAe925E1c7F364EA6FB4033c",
12996
+ "abi": [
12997
+ {
12998
+ "inputs": [
12999
+ {
13000
+ "internalType": "address",
13001
+ "name": "beacon",
13002
+ "type": "address"
13003
+ },
13004
+ {
13005
+ "internalType": "bytes",
13006
+ "name": "data",
13007
+ "type": "bytes"
13008
+ }
13009
+ ],
13010
+ "stateMutability": "payable",
13011
+ "type": "constructor"
13012
+ },
13013
+ {
13014
+ "anonymous": false,
13015
+ "inputs": [
13016
+ {
13017
+ "indexed": false,
13018
+ "internalType": "address",
13019
+ "name": "previousAdmin",
13020
+ "type": "address"
13021
+ },
13022
+ {
13023
+ "indexed": false,
13024
+ "internalType": "address",
13025
+ "name": "newAdmin",
13026
+ "type": "address"
13027
+ }
13028
+ ],
13029
+ "name": "AdminChanged",
13030
+ "type": "event"
13031
+ },
13032
+ {
13033
+ "anonymous": false,
13034
+ "inputs": [
13035
+ {
13036
+ "indexed": true,
13037
+ "internalType": "address",
13038
+ "name": "beacon",
13039
+ "type": "address"
13040
+ }
13041
+ ],
13042
+ "name": "BeaconUpgraded",
13043
+ "type": "event"
13044
+ },
13045
+ {
13046
+ "anonymous": false,
13047
+ "inputs": [
13048
+ {
13049
+ "indexed": true,
13050
+ "internalType": "address",
13051
+ "name": "implementation",
13052
+ "type": "address"
13053
+ }
13054
+ ],
13055
+ "name": "Upgraded",
13056
+ "type": "event"
13057
+ },
13058
+ {
13059
+ "stateMutability": "payable",
13060
+ "type": "fallback"
13061
+ },
13062
+ {
13063
+ "stateMutability": "payable",
13064
+ "type": "receive"
13065
+ }
13066
+ ]
12281
13067
  }
12282
13068
  }
12283
13069
  }