@meterio/sumer-js 0.2.31 → 0.2.33

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 (42) hide show
  1. package/dist/browser/sumer.min.js +8 -8
  2. package/dist/nodejs/abi.d.ts +94 -3
  3. package/dist/nodejs/abi.js +15983 -12519
  4. package/dist/nodejs/abi.js.map +1 -1
  5. package/dist/nodejs/constants/metertest.js +1 -1
  6. package/dist/nodejs/errorABIs.js +994 -135
  7. package/dist/nodejs/errorABIs.js.map +1 -1
  8. package/dist/nodejs/index.d.ts +94 -3
  9. package/dist/nodejs/typechain/contracts/Comptroller/CompLogic.d.ts +23 -1
  10. package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +23 -1
  11. package/dist/nodejs/typechain/contracts/Interfaces/ICompLogic.d.ts +19 -1
  12. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +1 -1
  13. package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +1 -1
  14. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +1 -1
  15. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1 -1
  16. package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
  17. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +1 -1
  18. package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +1 -1
  19. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +373 -1
  20. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +470 -1
  21. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js.map +1 -1
  22. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +1 -1
  23. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +1 -1
  24. package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
  25. package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.d.ts +1 -1
  26. package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js +1 -1
  27. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +37 -1
  28. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +48 -1
  29. package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
  30. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +1 -1
  31. package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +1 -1
  32. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
  33. package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
  34. package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.d.ts +26 -0
  35. package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js +34 -0
  36. package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js.map +1 -1
  37. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.d.ts +4 -4
  38. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js +6 -6
  39. package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js.map +1 -1
  40. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +1 -1
  41. package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +1 -1
  42. package/package.json +1 -1
@@ -3838,234 +3838,1093 @@ exports.errorABIs = [
3838
3838
  "type": "error"
3839
3839
  },
3840
3840
  {
3841
- "inputs": [
3842
- {
3843
- "internalType": "uint256",
3844
- "name": "capacity",
3845
- "type": "uint256"
3846
- },
3847
- {
3848
- "internalType": "uint256",
3849
- "name": "requested",
3850
- "type": "uint256"
3851
- }
3852
- ],
3853
- "name": "AggregateValueMaxCapacityExceeded",
3841
+ "inputs": [],
3842
+ "name": "AddReservesMarketNotFresh",
3854
3843
  "type": "error"
3855
3844
  },
3856
3845
  {
3857
- "inputs": [
3858
- {
3859
- "internalType": "uint256",
3860
- "name": "minWaitInSeconds",
3861
- "type": "uint256"
3862
- },
3863
- {
3864
- "internalType": "uint256",
3865
- "name": "available",
3866
- "type": "uint256"
3867
- }
3868
- ],
3869
- "name": "AggregateValueRateLimitReached",
3846
+ "inputs": [],
3847
+ "name": "AddReservesOverflow",
3870
3848
  "type": "error"
3871
3849
  },
3872
3850
  {
3873
3851
  "inputs": [],
3874
- "name": "BucketOverfilled",
3852
+ "name": "BorrowAndDepositBackFailed",
3875
3853
  "type": "error"
3876
3854
  },
3877
3855
  {
3878
- "inputs": [
3879
- {
3880
- "components": [
3881
- {
3882
- "internalType": "bool",
3883
- "name": "isEnabled",
3884
- "type": "bool"
3885
- },
3886
- {
3887
- "internalType": "uint256",
3888
- "name": "capacity",
3889
- "type": "uint256"
3890
- },
3891
- {
3892
- "internalType": "uint256",
3893
- "name": "rate",
3894
- "type": "uint256"
3895
- }
3896
- ],
3897
- "internalType": "struct RateLimiter.Config",
3898
- "name": "config",
3899
- "type": "tuple"
3900
- }
3901
- ],
3902
- "name": "DisabledNonZeroRateLimit",
3856
+ "inputs": [],
3857
+ "name": "BorrowCapReached",
3858
+ "type": "error"
3859
+ },
3860
+ {
3861
+ "inputs": [],
3862
+ "name": "BorrowCashNotAvailable",
3863
+ "type": "error"
3864
+ },
3865
+ {
3866
+ "inputs": [],
3867
+ "name": "BorrowMarketNotFresh",
3868
+ "type": "error"
3869
+ },
3870
+ {
3871
+ "inputs": [],
3872
+ "name": "BorrowPaused",
3903
3873
  "type": "error"
3904
3874
  },
3905
3875
  {
3906
3876
  "inputs": [
3907
3877
  {
3908
- "components": [
3909
- {
3910
- "internalType": "bool",
3911
- "name": "isEnabled",
3912
- "type": "bool"
3913
- },
3914
- {
3915
- "internalType": "uint256",
3916
- "name": "capacity",
3917
- "type": "uint256"
3918
- },
3919
- {
3920
- "internalType": "uint256",
3921
- "name": "rate",
3922
- "type": "uint256"
3923
- }
3924
- ],
3925
- "internalType": "struct RateLimiter.Config",
3926
- "name": "rateLimiterConfig",
3927
- "type": "tuple"
3878
+ "internalType": "uint256",
3879
+ "name": "usdThreshold",
3880
+ "type": "uint256"
3928
3881
  }
3929
3882
  ],
3930
- "name": "InvalidRatelimitRate",
3883
+ "name": "BorrowValueMustBeLargerThanThreshold",
3931
3884
  "type": "error"
3932
3885
  },
3933
3886
  {
3934
3887
  "inputs": [],
3935
- "name": "OnlyCallableByAdminOrOwner",
3888
+ "name": "CantExitMarketWithNonZeroBorrowBalance",
3936
3889
  "type": "error"
3937
3890
  },
3938
3891
  {
3939
3892
  "inputs": [],
3940
- "name": "RateLimitMustBeDisabled",
3893
+ "name": "CantSweepUnderlying",
3894
+ "type": "error"
3895
+ },
3896
+ {
3897
+ "inputs": [],
3898
+ "name": "ComptrollerMismatch",
3899
+ "type": "error"
3900
+ },
3901
+ {
3902
+ "inputs": [],
3903
+ "name": "EitherAssetOrDebtMustBeZero",
3941
3904
  "type": "error"
3942
3905
  },
3943
3906
  {
3944
3907
  "inputs": [
3945
3908
  {
3946
- "internalType": "uint256",
3947
- "name": "capacity",
3948
- "type": "uint256"
3909
+ "internalType": "uint8",
3910
+ "name": "groupId",
3911
+ "type": "uint8"
3949
3912
  },
3950
3913
  {
3951
3914
  "internalType": "uint256",
3952
- "name": "requested",
3915
+ "name": "cDepositVal",
3953
3916
  "type": "uint256"
3954
3917
  },
3955
- {
3956
- "internalType": "address",
3957
- "name": "tokenAddress",
3958
- "type": "address"
3959
- }
3960
- ],
3961
- "name": "TokenMaxCapacityExceeded",
3962
- "type": "error"
3963
- },
3964
- {
3965
- "inputs": [
3966
3918
  {
3967
3919
  "internalType": "uint256",
3968
- "name": "minWaitInSeconds",
3920
+ "name": "suDepositVal",
3969
3921
  "type": "uint256"
3970
3922
  },
3971
3923
  {
3972
3924
  "internalType": "uint256",
3973
- "name": "available",
3925
+ "name": "cBorrowVal",
3974
3926
  "type": "uint256"
3975
3927
  },
3976
3928
  {
3977
- "internalType": "address",
3978
- "name": "tokenAddress",
3979
- "type": "address"
3929
+ "internalType": "uint256",
3930
+ "name": "suBorrowVal",
3931
+ "type": "uint256"
3980
3932
  }
3981
3933
  ],
3982
- "name": "TokenRateLimitReached",
3934
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
3983
3935
  "type": "error"
3984
3936
  },
3985
3937
  {
3986
3938
  "inputs": [],
3987
- "name": "EmptyAdapterAddress",
3939
+ "name": "ExpiredSignature",
3988
3940
  "type": "error"
3989
3941
  },
3990
3942
  {
3991
3943
  "inputs": [],
3992
- "name": "EmptyFeedAddress",
3944
+ "name": "InsufficientCollateral",
3993
3945
  "type": "error"
3994
3946
  },
3995
3947
  {
3996
3948
  "inputs": [],
3997
- "name": "EmptyMaxStalePeriod",
3949
+ "name": "InsufficientShortfall",
3998
3950
  "type": "error"
3999
3951
  },
4000
3952
  {
4001
3953
  "inputs": [],
4002
- "name": "EmptyPendlePtOracle",
3954
+ "name": "InvalidAddress",
4003
3955
  "type": "error"
4004
3956
  },
4005
3957
  {
4006
3958
  "inputs": [],
4007
- "name": "EmptyPythOracle",
3959
+ "name": "InvalidAmount",
4008
3960
  "type": "error"
4009
3961
  },
4010
3962
  {
4011
3963
  "inputs": [],
4012
- "name": "InvalidFeedDecimals",
3964
+ "name": "InvalidBlockNumber",
4013
3965
  "type": "error"
4014
3966
  },
4015
3967
  {
4016
3968
  "inputs": [],
4017
- "name": "InvalidPrice",
3969
+ "name": "InvalidCloseFactor",
4018
3970
  "type": "error"
4019
3971
  },
4020
3972
  {
4021
3973
  "inputs": [],
4022
- "name": "UnknownSource",
3974
+ "name": "InvalidComptroller",
4023
3975
  "type": "error"
4024
3976
  },
4025
3977
  {
4026
3978
  "inputs": [],
4027
- "name": "UnsupportedSource",
3979
+ "name": "InvalidDiscountRate",
4028
3980
  "type": "error"
4029
3981
  },
4030
3982
  {
4031
3983
  "inputs": [],
4032
- "name": "ZeroAddressNotAllowed",
3984
+ "name": "InvalidExchangeRate",
4033
3985
  "type": "error"
4034
3986
  },
4035
3987
  {
4036
3988
  "inputs": [],
4037
- "name": "ZeroValueNotAllowed",
3989
+ "name": "InvalidGroupId",
4038
3990
  "type": "error"
4039
3991
  },
4040
3992
  {
4041
- "inputs": [
4042
- {
4043
- "internalType": "address",
4044
- "name": "token",
4045
- "type": "address"
4046
- },
4047
- {
4048
- "internalType": "uint256",
4049
- "name": "rewardRates",
4050
- "type": "uint256"
4051
- },
4052
- {
4053
- "internalType": "uint256",
4054
- "name": "rewardsDuration",
4055
- "type": "uint256"
4056
- },
4057
- {
4058
- "internalType": "uint256",
4059
- "name": "num_periods_elapsed",
4060
- "type": "uint256"
4061
- },
4062
- {
4063
- "internalType": "uint256",
4064
- "name": "balance",
4065
- "type": "uint256"
4066
- }
4067
- ],
4068
- "name": "NoEnoughReward",
3993
+ "inputs": [],
3994
+ "name": "InvalidInput",
3995
+ "type": "error"
3996
+ },
3997
+ {
3998
+ "inputs": [],
3999
+ "name": "InvalidInterestRateModel",
4000
+ "type": "error"
4001
+ },
4002
+ {
4003
+ "inputs": [],
4004
+ "name": "InvalidMinSuBorrowValue",
4005
+ "type": "error"
4006
+ },
4007
+ {
4008
+ "inputs": [],
4009
+ "name": "InvalidReduceAmount",
4010
+ "type": "error"
4011
+ },
4012
+ {
4013
+ "inputs": [],
4014
+ "name": "InvalidReserveFactor",
4015
+ "type": "error"
4016
+ },
4017
+ {
4018
+ "inputs": [],
4019
+ "name": "InvalidSignatureForRedeemFaceValue",
4020
+ "type": "error"
4021
+ },
4022
+ {
4023
+ "inputs": [],
4024
+ "name": "InvalidSignatureLength",
4025
+ "type": "error"
4026
+ },
4027
+ {
4028
+ "inputs": [],
4029
+ "name": "InvalidSuToken",
4030
+ "type": "error"
4031
+ },
4032
+ {
4033
+ "inputs": [],
4034
+ "name": "LiquidateBorrow_LiquidatorIsBorrower",
4035
+ "type": "error"
4036
+ },
4037
+ {
4038
+ "inputs": [],
4039
+ "name": "LiquidateBorrow_RepayAmountIsMax",
4040
+ "type": "error"
4041
+ },
4042
+ {
4043
+ "inputs": [],
4044
+ "name": "LiquidateBorrow_RepayAmountIsZero",
4045
+ "type": "error"
4046
+ },
4047
+ {
4048
+ "inputs": [],
4049
+ "name": "LiquidateBorrow_SeizeTooMuch",
4050
+ "type": "error"
4051
+ },
4052
+ {
4053
+ "inputs": [],
4054
+ "name": "LiquidateCollateralMarketNotFresh",
4055
+ "type": "error"
4056
+ },
4057
+ {
4058
+ "inputs": [],
4059
+ "name": "LiquidateMarketNotFresh",
4060
+ "type": "error"
4061
+ },
4062
+ {
4063
+ "inputs": [],
4064
+ "name": "MarketAlreadyListed",
4065
+ "type": "error"
4066
+ },
4067
+ {
4068
+ "inputs": [],
4069
+ "name": "MarketCanOnlyInitializeOnce",
4070
+ "type": "error"
4071
+ },
4072
+ {
4073
+ "inputs": [],
4074
+ "name": "MarketNotListed",
4075
+ "type": "error"
4076
+ },
4077
+ {
4078
+ "inputs": [],
4079
+ "name": "MinDelayNotReached",
4080
+ "type": "error"
4081
+ },
4082
+ {
4083
+ "inputs": [],
4084
+ "name": "MintMarketNotFresh",
4085
+ "type": "error"
4086
+ },
4087
+ {
4088
+ "inputs": [],
4089
+ "name": "MintPaused",
4090
+ "type": "error"
4091
+ },
4092
+ {
4093
+ "inputs": [],
4094
+ "name": "NoRedemptionProvider",
4095
+ "type": "error"
4096
+ },
4097
+ {
4098
+ "inputs": [],
4099
+ "name": "NotCToken",
4100
+ "type": "error"
4101
+ },
4102
+ {
4103
+ "inputs": [],
4104
+ "name": "NotEnoughForSeize",
4105
+ "type": "error"
4106
+ },
4107
+ {
4108
+ "inputs": [],
4109
+ "name": "NotLiquidatableYet",
4110
+ "type": "error"
4111
+ },
4112
+ {
4113
+ "inputs": [],
4114
+ "name": "NotSuToken",
4115
+ "type": "error"
4116
+ },
4117
+ {
4118
+ "inputs": [],
4119
+ "name": "OnlyAdmin",
4120
+ "type": "error"
4121
+ },
4122
+ {
4123
+ "inputs": [],
4124
+ "name": "OnlyAdminOrPauser",
4125
+ "type": "error"
4126
+ },
4127
+ {
4128
+ "inputs": [],
4129
+ "name": "OnlyCToken",
4130
+ "type": "error"
4131
+ },
4132
+ {
4133
+ "inputs": [],
4134
+ "name": "OnlyListedCToken",
4135
+ "type": "error"
4136
+ },
4137
+ {
4138
+ "inputs": [],
4139
+ "name": "OnlyPendingAdmin",
4140
+ "type": "error"
4141
+ },
4142
+ {
4143
+ "inputs": [],
4144
+ "name": "OnlyRedemptionManager",
4145
+ "type": "error"
4146
+ },
4147
+ {
4148
+ "inputs": [],
4149
+ "name": "PriceError",
4150
+ "type": "error"
4151
+ },
4152
+ {
4153
+ "inputs": [],
4154
+ "name": "ProtectedMint_OnlyAllowAssetsInTheSameGroup",
4155
+ "type": "error"
4156
+ },
4157
+ {
4158
+ "inputs": [],
4159
+ "name": "RedeemMarketNotFresh",
4160
+ "type": "error"
4161
+ },
4162
+ {
4163
+ "inputs": [],
4164
+ "name": "RedeemTransferOutNotPossible",
4165
+ "type": "error"
4166
+ },
4167
+ {
4168
+ "inputs": [],
4169
+ "name": "RedemptionSeizeTooMuch",
4170
+ "type": "error"
4171
+ },
4172
+ {
4173
+ "inputs": [],
4174
+ "name": "RedemptionSignerNotInitialized",
4175
+ "type": "error"
4176
+ },
4177
+ {
4178
+ "inputs": [],
4179
+ "name": "ReduceReservesCashNotAvailable",
4180
+ "type": "error"
4181
+ },
4182
+ {
4183
+ "inputs": [],
4184
+ "name": "ReduceReservesMarketNotFresh",
4185
+ "type": "error"
4186
+ },
4187
+ {
4188
+ "inputs": [],
4189
+ "name": "RepayBorrowMarketNotFresh",
4190
+ "type": "error"
4191
+ },
4192
+ {
4193
+ "inputs": [],
4194
+ "name": "SeizePaused",
4195
+ "type": "error"
4196
+ },
4197
+ {
4198
+ "inputs": [],
4199
+ "name": "Seize_LiquidatorIsBorrower",
4200
+ "type": "error"
4201
+ },
4202
+ {
4203
+ "inputs": [],
4204
+ "name": "SenderMustBeCToken",
4205
+ "type": "error"
4206
+ },
4207
+ {
4208
+ "inputs": [],
4209
+ "name": "SetInterestRateModelMarketNotFresh",
4210
+ "type": "error"
4211
+ },
4212
+ {
4213
+ "inputs": [],
4214
+ "name": "SetReservesFactorMarketNotFresh",
4215
+ "type": "error"
4216
+ },
4217
+ {
4218
+ "inputs": [],
4219
+ "name": "SupplyCapReached",
4220
+ "type": "error"
4221
+ },
4222
+ {
4223
+ "inputs": [],
4224
+ "name": "TokenInOrAmountInMustBeZero",
4225
+ "type": "error"
4226
+ },
4227
+ {
4228
+ "inputs": [],
4229
+ "name": "TokenTransferInFailed",
4230
+ "type": "error"
4231
+ },
4232
+ {
4233
+ "inputs": [],
4234
+ "name": "TokenTransferOutFailed",
4235
+ "type": "error"
4236
+ },
4237
+ {
4238
+ "inputs": [],
4239
+ "name": "TooMuchRepay",
4240
+ "type": "error"
4241
+ },
4242
+ {
4243
+ "inputs": [],
4244
+ "name": "TransferNotAllowed",
4245
+ "type": "error"
4246
+ },
4247
+ {
4248
+ "inputs": [],
4249
+ "name": "TransferPaused",
4250
+ "type": "error"
4251
+ },
4252
+ {
4253
+ "inputs": [],
4254
+ "name": "UnderlyingBalanceError",
4255
+ "type": "error"
4256
+ },
4257
+ {
4258
+ "inputs": [],
4259
+ "name": "ZeroAddressNotAllowed",
4260
+ "type": "error"
4261
+ },
4262
+ {
4263
+ "inputs": [
4264
+ {
4265
+ "internalType": "uint256",
4266
+ "name": "capacity",
4267
+ "type": "uint256"
4268
+ },
4269
+ {
4270
+ "internalType": "uint256",
4271
+ "name": "requested",
4272
+ "type": "uint256"
4273
+ }
4274
+ ],
4275
+ "name": "AggregateValueMaxCapacityExceeded",
4276
+ "type": "error"
4277
+ },
4278
+ {
4279
+ "inputs": [
4280
+ {
4281
+ "internalType": "uint256",
4282
+ "name": "minWaitInSeconds",
4283
+ "type": "uint256"
4284
+ },
4285
+ {
4286
+ "internalType": "uint256",
4287
+ "name": "available",
4288
+ "type": "uint256"
4289
+ }
4290
+ ],
4291
+ "name": "AggregateValueRateLimitReached",
4292
+ "type": "error"
4293
+ },
4294
+ {
4295
+ "inputs": [],
4296
+ "name": "BucketOverfilled",
4297
+ "type": "error"
4298
+ },
4299
+ {
4300
+ "inputs": [
4301
+ {
4302
+ "components": [
4303
+ {
4304
+ "internalType": "bool",
4305
+ "name": "isEnabled",
4306
+ "type": "bool"
4307
+ },
4308
+ {
4309
+ "internalType": "uint256",
4310
+ "name": "capacity",
4311
+ "type": "uint256"
4312
+ },
4313
+ {
4314
+ "internalType": "uint256",
4315
+ "name": "rate",
4316
+ "type": "uint256"
4317
+ }
4318
+ ],
4319
+ "internalType": "struct RateLimiter.Config",
4320
+ "name": "config",
4321
+ "type": "tuple"
4322
+ }
4323
+ ],
4324
+ "name": "DisabledNonZeroRateLimit",
4325
+ "type": "error"
4326
+ },
4327
+ {
4328
+ "inputs": [
4329
+ {
4330
+ "components": [
4331
+ {
4332
+ "internalType": "bool",
4333
+ "name": "isEnabled",
4334
+ "type": "bool"
4335
+ },
4336
+ {
4337
+ "internalType": "uint256",
4338
+ "name": "capacity",
4339
+ "type": "uint256"
4340
+ },
4341
+ {
4342
+ "internalType": "uint256",
4343
+ "name": "rate",
4344
+ "type": "uint256"
4345
+ }
4346
+ ],
4347
+ "internalType": "struct RateLimiter.Config",
4348
+ "name": "rateLimiterConfig",
4349
+ "type": "tuple"
4350
+ }
4351
+ ],
4352
+ "name": "InvalidRatelimitRate",
4353
+ "type": "error"
4354
+ },
4355
+ {
4356
+ "inputs": [],
4357
+ "name": "OnlyCallableByAdminOrOwner",
4358
+ "type": "error"
4359
+ },
4360
+ {
4361
+ "inputs": [],
4362
+ "name": "RateLimitMustBeDisabled",
4363
+ "type": "error"
4364
+ },
4365
+ {
4366
+ "inputs": [
4367
+ {
4368
+ "internalType": "uint256",
4369
+ "name": "capacity",
4370
+ "type": "uint256"
4371
+ },
4372
+ {
4373
+ "internalType": "uint256",
4374
+ "name": "requested",
4375
+ "type": "uint256"
4376
+ },
4377
+ {
4378
+ "internalType": "address",
4379
+ "name": "tokenAddress",
4380
+ "type": "address"
4381
+ }
4382
+ ],
4383
+ "name": "TokenMaxCapacityExceeded",
4384
+ "type": "error"
4385
+ },
4386
+ {
4387
+ "inputs": [
4388
+ {
4389
+ "internalType": "uint256",
4390
+ "name": "minWaitInSeconds",
4391
+ "type": "uint256"
4392
+ },
4393
+ {
4394
+ "internalType": "uint256",
4395
+ "name": "available",
4396
+ "type": "uint256"
4397
+ },
4398
+ {
4399
+ "internalType": "address",
4400
+ "name": "tokenAddress",
4401
+ "type": "address"
4402
+ }
4403
+ ],
4404
+ "name": "TokenRateLimitReached",
4405
+ "type": "error"
4406
+ },
4407
+ {
4408
+ "inputs": [],
4409
+ "name": "EmptyAdapterAddress",
4410
+ "type": "error"
4411
+ },
4412
+ {
4413
+ "inputs": [],
4414
+ "name": "EmptyFeedAddress",
4415
+ "type": "error"
4416
+ },
4417
+ {
4418
+ "inputs": [],
4419
+ "name": "EmptyMaxStalePeriod",
4420
+ "type": "error"
4421
+ },
4422
+ {
4423
+ "inputs": [],
4424
+ "name": "EmptyPendlePtOracle",
4425
+ "type": "error"
4426
+ },
4427
+ {
4428
+ "inputs": [],
4429
+ "name": "EmptyPythOracle",
4430
+ "type": "error"
4431
+ },
4432
+ {
4433
+ "inputs": [],
4434
+ "name": "InvalidFeedDecimals",
4435
+ "type": "error"
4436
+ },
4437
+ {
4438
+ "inputs": [],
4439
+ "name": "InvalidPrice",
4440
+ "type": "error"
4441
+ },
4442
+ {
4443
+ "inputs": [],
4444
+ "name": "UnknownSource",
4445
+ "type": "error"
4446
+ },
4447
+ {
4448
+ "inputs": [],
4449
+ "name": "UnsupportedSource",
4450
+ "type": "error"
4451
+ },
4452
+ {
4453
+ "inputs": [],
4454
+ "name": "ZeroAddressNotAllowed",
4455
+ "type": "error"
4456
+ },
4457
+ {
4458
+ "inputs": [],
4459
+ "name": "ZeroValueNotAllowed",
4460
+ "type": "error"
4461
+ },
4462
+ {
4463
+ "inputs": [
4464
+ {
4465
+ "internalType": "address",
4466
+ "name": "token",
4467
+ "type": "address"
4468
+ },
4469
+ {
4470
+ "internalType": "uint256",
4471
+ "name": "rewardRates",
4472
+ "type": "uint256"
4473
+ },
4474
+ {
4475
+ "internalType": "uint256",
4476
+ "name": "rewardsDuration",
4477
+ "type": "uint256"
4478
+ },
4479
+ {
4480
+ "internalType": "uint256",
4481
+ "name": "num_periods_elapsed",
4482
+ "type": "uint256"
4483
+ },
4484
+ {
4485
+ "internalType": "uint256",
4486
+ "name": "balance",
4487
+ "type": "uint256"
4488
+ }
4489
+ ],
4490
+ "name": "NoEnoughReward",
4491
+ "type": "error"
4492
+ },
4493
+ {
4494
+ "inputs": [],
4495
+ "name": "AddReservesMarketNotFresh",
4496
+ "type": "error"
4497
+ },
4498
+ {
4499
+ "inputs": [],
4500
+ "name": "AddReservesOverflow",
4501
+ "type": "error"
4502
+ },
4503
+ {
4504
+ "inputs": [],
4505
+ "name": "BorrowAndDepositBackFailed",
4506
+ "type": "error"
4507
+ },
4508
+ {
4509
+ "inputs": [],
4510
+ "name": "BorrowCapReached",
4511
+ "type": "error"
4512
+ },
4513
+ {
4514
+ "inputs": [],
4515
+ "name": "BorrowCashNotAvailable",
4516
+ "type": "error"
4517
+ },
4518
+ {
4519
+ "inputs": [],
4520
+ "name": "BorrowMarketNotFresh",
4521
+ "type": "error"
4522
+ },
4523
+ {
4524
+ "inputs": [],
4525
+ "name": "BorrowPaused",
4526
+ "type": "error"
4527
+ },
4528
+ {
4529
+ "inputs": [
4530
+ {
4531
+ "internalType": "uint256",
4532
+ "name": "usdThreshold",
4533
+ "type": "uint256"
4534
+ }
4535
+ ],
4536
+ "name": "BorrowValueMustBeLargerThanThreshold",
4537
+ "type": "error"
4538
+ },
4539
+ {
4540
+ "inputs": [],
4541
+ "name": "CantExitMarketWithNonZeroBorrowBalance",
4542
+ "type": "error"
4543
+ },
4544
+ {
4545
+ "inputs": [],
4546
+ "name": "CantSweepUnderlying",
4547
+ "type": "error"
4548
+ },
4549
+ {
4550
+ "inputs": [],
4551
+ "name": "ComptrollerMismatch",
4552
+ "type": "error"
4553
+ },
4554
+ {
4555
+ "inputs": [],
4556
+ "name": "EitherAssetOrDebtMustBeZero",
4557
+ "type": "error"
4558
+ },
4559
+ {
4560
+ "inputs": [
4561
+ {
4562
+ "internalType": "uint8",
4563
+ "name": "groupId",
4564
+ "type": "uint8"
4565
+ },
4566
+ {
4567
+ "internalType": "uint256",
4568
+ "name": "cDepositVal",
4569
+ "type": "uint256"
4570
+ },
4571
+ {
4572
+ "internalType": "uint256",
4573
+ "name": "suDepositVal",
4574
+ "type": "uint256"
4575
+ },
4576
+ {
4577
+ "internalType": "uint256",
4578
+ "name": "cBorrowVal",
4579
+ "type": "uint256"
4580
+ },
4581
+ {
4582
+ "internalType": "uint256",
4583
+ "name": "suBorrowVal",
4584
+ "type": "uint256"
4585
+ }
4586
+ ],
4587
+ "name": "EitherAssetOrDebtMustBeZeroInGroup",
4588
+ "type": "error"
4589
+ },
4590
+ {
4591
+ "inputs": [],
4592
+ "name": "ExpiredSignature",
4593
+ "type": "error"
4594
+ },
4595
+ {
4596
+ "inputs": [],
4597
+ "name": "GroupIdMismatch",
4598
+ "type": "error"
4599
+ },
4600
+ {
4601
+ "inputs": [],
4602
+ "name": "InsufficientCollateral",
4603
+ "type": "error"
4604
+ },
4605
+ {
4606
+ "inputs": [],
4607
+ "name": "InsufficientShortfall",
4608
+ "type": "error"
4609
+ },
4610
+ {
4611
+ "inputs": [],
4612
+ "name": "InvalidAddress",
4613
+ "type": "error"
4614
+ },
4615
+ {
4616
+ "inputs": [],
4617
+ "name": "InvalidAmount",
4618
+ "type": "error"
4619
+ },
4620
+ {
4621
+ "inputs": [],
4622
+ "name": "InvalidCloseFactor",
4623
+ "type": "error"
4624
+ },
4625
+ {
4626
+ "inputs": [],
4627
+ "name": "InvalidComptroller",
4628
+ "type": "error"
4629
+ },
4630
+ {
4631
+ "inputs": [],
4632
+ "name": "InvalidDiscountRate",
4633
+ "type": "error"
4634
+ },
4635
+ {
4636
+ "inputs": [],
4637
+ "name": "InvalidExchangeRate",
4638
+ "type": "error"
4639
+ },
4640
+ {
4641
+ "inputs": [],
4642
+ "name": "InvalidGroupId",
4643
+ "type": "error"
4644
+ },
4645
+ {
4646
+ "inputs": [],
4647
+ "name": "InvalidInput",
4648
+ "type": "error"
4649
+ },
4650
+ {
4651
+ "inputs": [],
4652
+ "name": "InvalidInterestRateModel",
4653
+ "type": "error"
4654
+ },
4655
+ {
4656
+ "inputs": [],
4657
+ "name": "InvalidMinSuBorrowValue",
4658
+ "type": "error"
4659
+ },
4660
+ {
4661
+ "inputs": [],
4662
+ "name": "InvalidReduceAmount",
4663
+ "type": "error"
4664
+ },
4665
+ {
4666
+ "inputs": [],
4667
+ "name": "InvalidReserveFactor",
4668
+ "type": "error"
4669
+ },
4670
+ {
4671
+ "inputs": [],
4672
+ "name": "InvalidSignatureForRedeemFaceValue",
4673
+ "type": "error"
4674
+ },
4675
+ {
4676
+ "inputs": [],
4677
+ "name": "InvalidSignatureLength",
4678
+ "type": "error"
4679
+ },
4680
+ {
4681
+ "inputs": [],
4682
+ "name": "InvalidSuToken",
4683
+ "type": "error"
4684
+ },
4685
+ {
4686
+ "inputs": [],
4687
+ "name": "LiquidateBorrow_LiquidatorIsBorrower",
4688
+ "type": "error"
4689
+ },
4690
+ {
4691
+ "inputs": [],
4692
+ "name": "LiquidateBorrow_RepayAmountIsMax",
4693
+ "type": "error"
4694
+ },
4695
+ {
4696
+ "inputs": [],
4697
+ "name": "LiquidateBorrow_RepayAmountIsZero",
4698
+ "type": "error"
4699
+ },
4700
+ {
4701
+ "inputs": [],
4702
+ "name": "LiquidateBorrow_SeizeTooMuch",
4703
+ "type": "error"
4704
+ },
4705
+ {
4706
+ "inputs": [],
4707
+ "name": "LiquidateCollateralMarketNotFresh",
4708
+ "type": "error"
4709
+ },
4710
+ {
4711
+ "inputs": [],
4712
+ "name": "LiquidateMarketNotFresh",
4713
+ "type": "error"
4714
+ },
4715
+ {
4716
+ "inputs": [],
4717
+ "name": "MarketAlreadyListed",
4718
+ "type": "error"
4719
+ },
4720
+ {
4721
+ "inputs": [],
4722
+ "name": "MarketCanOnlyInitializeOnce",
4723
+ "type": "error"
4724
+ },
4725
+ {
4726
+ "inputs": [],
4727
+ "name": "MarketNotListed",
4728
+ "type": "error"
4729
+ },
4730
+ {
4731
+ "inputs": [],
4732
+ "name": "MinDelayNotReached",
4733
+ "type": "error"
4734
+ },
4735
+ {
4736
+ "inputs": [],
4737
+ "name": "MintMarketNotFresh",
4738
+ "type": "error"
4739
+ },
4740
+ {
4741
+ "inputs": [],
4742
+ "name": "MintPaused",
4743
+ "type": "error"
4744
+ },
4745
+ {
4746
+ "inputs": [],
4747
+ "name": "NoRedemptionProvider",
4748
+ "type": "error"
4749
+ },
4750
+ {
4751
+ "inputs": [],
4752
+ "name": "NotCToken",
4753
+ "type": "error"
4754
+ },
4755
+ {
4756
+ "inputs": [],
4757
+ "name": "NotEnoughForSeize",
4758
+ "type": "error"
4759
+ },
4760
+ {
4761
+ "inputs": [],
4762
+ "name": "NotLiquidatableYet",
4763
+ "type": "error"
4764
+ },
4765
+ {
4766
+ "inputs": [],
4767
+ "name": "NotSuToken",
4768
+ "type": "error"
4769
+ },
4770
+ {
4771
+ "inputs": [],
4772
+ "name": "OneOfRedeemTokensAndRedeemAmountMustBeZero",
4773
+ "type": "error"
4774
+ },
4775
+ {
4776
+ "inputs": [],
4777
+ "name": "OnlyAdmin",
4778
+ "type": "error"
4779
+ },
4780
+ {
4781
+ "inputs": [],
4782
+ "name": "OnlyAdminOrCapper",
4783
+ "type": "error"
4784
+ },
4785
+ {
4786
+ "inputs": [],
4787
+ "name": "OnlyAdminOrPauser",
4788
+ "type": "error"
4789
+ },
4790
+ {
4791
+ "inputs": [],
4792
+ "name": "OnlyCToken",
4793
+ "type": "error"
4794
+ },
4795
+ {
4796
+ "inputs": [],
4797
+ "name": "OnlyListedCToken",
4798
+ "type": "error"
4799
+ },
4800
+ {
4801
+ "inputs": [],
4802
+ "name": "OnlyPendingAdmin",
4803
+ "type": "error"
4804
+ },
4805
+ {
4806
+ "inputs": [],
4807
+ "name": "OnlyRedemptionManager",
4808
+ "type": "error"
4809
+ },
4810
+ {
4811
+ "inputs": [],
4812
+ "name": "PriceError",
4813
+ "type": "error"
4814
+ },
4815
+ {
4816
+ "inputs": [],
4817
+ "name": "ProtectedMint_OnlyAllowAssetsInTheSameGroup",
4818
+ "type": "error"
4819
+ },
4820
+ {
4821
+ "inputs": [],
4822
+ "name": "ProtocolIsPaused",
4823
+ "type": "error"
4824
+ },
4825
+ {
4826
+ "inputs": [],
4827
+ "name": "RedeemMarketNotFresh",
4828
+ "type": "error"
4829
+ },
4830
+ {
4831
+ "inputs": [],
4832
+ "name": "RedeemTransferOutNotPossible",
4833
+ "type": "error"
4834
+ },
4835
+ {
4836
+ "inputs": [],
4837
+ "name": "RedemptionSeizeTooMuch",
4838
+ "type": "error"
4839
+ },
4840
+ {
4841
+ "inputs": [],
4842
+ "name": "RedemptionSignerNotInitialized",
4843
+ "type": "error"
4844
+ },
4845
+ {
4846
+ "inputs": [],
4847
+ "name": "ReduceReservesCashNotAvailable",
4848
+ "type": "error"
4849
+ },
4850
+ {
4851
+ "inputs": [],
4852
+ "name": "ReduceReservesMarketNotFresh",
4853
+ "type": "error"
4854
+ },
4855
+ {
4856
+ "inputs": [],
4857
+ "name": "ReduceReservesOverflow",
4858
+ "type": "error"
4859
+ },
4860
+ {
4861
+ "inputs": [],
4862
+ "name": "RepayBorrowMarketNotFresh",
4863
+ "type": "error"
4864
+ },
4865
+ {
4866
+ "inputs": [],
4867
+ "name": "SeizePaused",
4868
+ "type": "error"
4869
+ },
4870
+ {
4871
+ "inputs": [],
4872
+ "name": "Seize_LiquidatorIsBorrower",
4873
+ "type": "error"
4874
+ },
4875
+ {
4876
+ "inputs": [],
4877
+ "name": "SenderMustBeCToken",
4878
+ "type": "error"
4879
+ },
4880
+ {
4881
+ "inputs": [],
4882
+ "name": "SetInterestRateModelMarketNotFresh",
4883
+ "type": "error"
4884
+ },
4885
+ {
4886
+ "inputs": [],
4887
+ "name": "SetReservesFactorMarketNotFresh",
4888
+ "type": "error"
4889
+ },
4890
+ {
4891
+ "inputs": [],
4892
+ "name": "SupplyCapReached",
4893
+ "type": "error"
4894
+ },
4895
+ {
4896
+ "inputs": [],
4897
+ "name": "TokenInOrAmountInMustBeZero",
4898
+ "type": "error"
4899
+ },
4900
+ {
4901
+ "inputs": [],
4902
+ "name": "TokenTransferInFailed",
4903
+ "type": "error"
4904
+ },
4905
+ {
4906
+ "inputs": [],
4907
+ "name": "TokenTransferOutFailed",
4908
+ "type": "error"
4909
+ },
4910
+ {
4911
+ "inputs": [],
4912
+ "name": "TooMuchRepay",
4913
+ "type": "error"
4914
+ },
4915
+ {
4916
+ "inputs": [],
4917
+ "name": "TransferNotAllowed",
4918
+ "type": "error"
4919
+ },
4920
+ {
4921
+ "inputs": [],
4922
+ "name": "TransferPaused",
4923
+ "type": "error"
4924
+ },
4925
+ {
4926
+ "inputs": [],
4927
+ "name": "UnderlyingBalanceError",
4069
4928
  "type": "error"
4070
4929
  }
4071
4930
  ];