@venusprotocol/venus-protocol 7.6.0-dev.2 → 7.6.0-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +1 -1
  2. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +1 -1
  3. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +1 -1
  4. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +1 -1
  5. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +1 -1
  6. package/artifacts/@venusprotocol/oracle/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +1 -1
  7. package/artifacts/@venusprotocol/solidity-utilities/contracts/MaxLoopsLimitHelper.sol/MaxLoopsLimitHelper.dbg.json +1 -1
  8. package/artifacts/@venusprotocol/solidity-utilities/contracts/TimeManagerV8.sol/TimeManagerV8.dbg.json +1 -1
  9. package/artifacts/build-info/{db82b17d0da6752b00ad696fe36aa8fb.json → f873604cc800d476500cd733aebbcd98.json} +1 -1
  10. package/artifacts/contracts/Admin/VBNBAdmin.sol/VBNBAdmin.dbg.json +1 -1
  11. package/artifacts/contracts/Admin/VBNBAdminStorage.sol/IProtocolShareReserve.dbg.json +1 -1
  12. package/artifacts/contracts/Admin/VBNBAdminStorage.sol/IWBNB.dbg.json +1 -1
  13. package/artifacts/contracts/Admin/VBNBAdminStorage.sol/VBNBAdminStorage.dbg.json +1 -1
  14. package/artifacts/contracts/Admin/VBNBAdminStorage.sol/VTokenInterface.dbg.json +1 -1
  15. package/artifacts/contracts/DelegateBorrowers/MoveDebtDelegate.sol/MoveDebtDelegate.dbg.json +1 -1
  16. package/artifacts/contracts/DelegateBorrowers/MoveDebtDelegate.sol/MoveDebtDelegate.json +2 -2
  17. package/artifacts/contracts/DelegateBorrowers/SwapDebtDelegate.sol/SwapDebtDelegate.dbg.json +1 -1
  18. package/artifacts/contracts/DelegateBorrowers/SwapDebtDelegate.sol/SwapDebtDelegate.json +2 -2
  19. package/artifacts/contracts/Governance/TokenRedeemer.sol/TokenRedeemer.dbg.json +1 -1
  20. package/artifacts/contracts/Governance/TokenRedeemer.sol/TokenRedeemer.json +71 -5
  21. package/artifacts/contracts/InterfacesV8.sol/IComptroller.dbg.json +1 -1
  22. package/artifacts/contracts/InterfacesV8.sol/ILiquidator.dbg.json +1 -1
  23. package/artifacts/contracts/InterfacesV8.sol/IProtocolShareReserve.dbg.json +1 -1
  24. package/artifacts/contracts/InterfacesV8.sol/IVAIController.dbg.json +1 -1
  25. package/artifacts/contracts/InterfacesV8.sol/IVBNB.dbg.json +1 -1
  26. package/artifacts/contracts/InterfacesV8.sol/IVBNB.json +83 -0
  27. package/artifacts/contracts/InterfacesV8.sol/IVBep20.dbg.json +1 -1
  28. package/artifacts/contracts/InterfacesV8.sol/IVBep20.json +52 -1
  29. package/artifacts/contracts/InterfacesV8.sol/IVToken.dbg.json +1 -1
  30. package/artifacts/contracts/InterfacesV8.sol/IVToken.json +70 -0
  31. package/artifacts/contracts/InterfacesV8.sol/IWBNB.dbg.json +1 -1
  32. package/artifacts/contracts/Liquidator/BUSDLiquidator.sol/BUSDLiquidator.dbg.json +1 -1
  33. package/artifacts/contracts/Liquidator/BUSDLiquidator.sol/BUSDLiquidator.json +2 -2
  34. package/artifacts/contracts/Liquidator/Liquidator.sol/Liquidator.dbg.json +1 -1
  35. package/artifacts/contracts/Liquidator/Liquidator.sol/Liquidator.json +2 -2
  36. package/artifacts/contracts/Liquidator/LiquidatorStorage.sol/LiquidatorStorage.dbg.json +1 -1
  37. package/artifacts/contracts/PegStability/IVAI.sol/IVAI.dbg.json +1 -1
  38. package/artifacts/contracts/PegStability/PegStability.sol/PegStability.dbg.json +1 -1
  39. package/artifacts/contracts/Swap/IRouterHelper.sol/IRouterHelper.dbg.json +1 -1
  40. package/artifacts/contracts/Swap/RouterHelper.sol/RouterHelper.dbg.json +1 -1
  41. package/artifacts/contracts/Swap/SwapRouter.sol/SwapRouter.dbg.json +1 -1
  42. package/artifacts/contracts/Swap/interfaces/IPancakePair.sol/IPancakePair.dbg.json +1 -1
  43. package/artifacts/contracts/Swap/interfaces/IPancakeSwapV2Factory.sol/IPancakeSwapV2Factory.dbg.json +1 -1
  44. package/artifacts/contracts/Swap/interfaces/IPancakeSwapV2Router.sol/IPancakeSwapV2Router.dbg.json +1 -1
  45. package/artifacts/contracts/Swap/interfaces/IVBNB.sol/IVBNB.dbg.json +1 -1
  46. package/artifacts/contracts/Swap/interfaces/IVtoken.sol/IVToken.dbg.json +1 -1
  47. package/artifacts/contracts/Swap/interfaces/IWBNB.sol/IWBNB.dbg.json +1 -1
  48. package/artifacts/contracts/Swap/interfaces/InterfaceComptroller.sol/InterfaceComptroller.dbg.json +1 -1
  49. package/artifacts/contracts/Swap/lib/PancakeLibrary.sol/PancakeLibrary.dbg.json +1 -1
  50. package/artifacts/contracts/Swap/lib/TransferHelper.sol/TransferHelper.dbg.json +1 -1
  51. package/artifacts/contracts/Tokens/Prime/Interfaces/IPoolRegistry.sol/PoolRegistryInterface.dbg.json +1 -1
  52. package/artifacts/contracts/Tokens/Prime/Interfaces/IPrime.sol/IPrime.dbg.json +1 -1
  53. package/artifacts/contracts/Tokens/Prime/Interfaces/IPrimeLiquidityProvider.sol/IPrimeLiquidityProvider.dbg.json +1 -1
  54. package/artifacts/contracts/Tokens/Prime/Interfaces/IVToken.sol/IVToken.dbg.json +1 -1
  55. package/artifacts/contracts/Tokens/Prime/Interfaces/IXVSVault.sol/IXVSVault.dbg.json +1 -1
  56. package/artifacts/contracts/Tokens/Prime/Interfaces/InterfaceComptroller.sol/InterfaceComptroller.dbg.json +1 -1
  57. package/artifacts/contracts/Tokens/Prime/Prime.sol/Prime.dbg.json +1 -1
  58. package/artifacts/contracts/Tokens/Prime/PrimeLiquidityProvider.sol/PrimeLiquidityProvider.dbg.json +1 -1
  59. package/artifacts/contracts/Tokens/Prime/PrimeLiquidityProviderStorage.sol/PrimeLiquidityProviderStorageV1.dbg.json +1 -1
  60. package/artifacts/contracts/Tokens/Prime/PrimeStorage.sol/PrimeStorageV1.dbg.json +1 -1
  61. package/artifacts/contracts/Tokens/Prime/libs/FixedMath.sol/FixedMath.dbg.json +1 -1
  62. package/artifacts/contracts/Tokens/Prime/libs/FixedMath0x.sol/FixedMath0x.dbg.json +1 -1
  63. package/artifacts/contracts/Tokens/Prime/libs/Scores.sol/Scores.dbg.json +1 -1
  64. package/artifacts/contracts/lib/Currency.sol/CurrencyLibrary.dbg.json +4 -0
  65. package/artifacts/contracts/lib/Currency.sol/CurrencyLibrary.json +29 -0
  66. package/artifacts/contracts/test/AccessControlManagerMock.sol/AccessControlManagerMock.dbg.json +1 -1
  67. package/artifacts/contracts/test/LiquidatorHarness.sol/LiquidatorHarness.dbg.json +1 -1
  68. package/artifacts/contracts/test/LiquidatorHarness.sol/LiquidatorHarness.json +2 -2
  69. package/artifacts/contracts/test/MockProtocolShareReserve.sol/IComptroller.dbg.json +1 -1
  70. package/artifacts/contracts/test/MockProtocolShareReserve.sol/IIncomeDestination.dbg.json +1 -1
  71. package/artifacts/contracts/test/MockProtocolShareReserve.sol/IMockProtocolShareReserve.dbg.json +1 -1
  72. package/artifacts/contracts/test/MockProtocolShareReserve.sol/IPoolRegistry.dbg.json +1 -1
  73. package/artifacts/contracts/test/MockProtocolShareReserve.sol/IPrime.dbg.json +1 -1
  74. package/artifacts/contracts/test/MockProtocolShareReserve.sol/IVToken.dbg.json +1 -1
  75. package/artifacts/contracts/test/MockProtocolShareReserve.sol/MaxLoopsLimitHelper.dbg.json +1 -1
  76. package/artifacts/contracts/test/MockProtocolShareReserve.sol/MockProtocolShareReserve.dbg.json +1 -1
  77. package/artifacts/contracts/test/PrimeScenario.sol/PrimeScenario.dbg.json +1 -1
  78. package/contracts/Governance/TokenRedeemer.sol +126 -20
  79. package/contracts/InterfacesV8.sol +10 -2
  80. package/contracts/lib/Currency.sol +82 -0
  81. package/deploy/012-deploy-token-redeemer.ts +2 -1
  82. package/deployments/bscmainnet/JumpRateModel_base0bps_slope10000bps_jump25000bps_kink8000bps.json +380 -0
  83. package/deployments/bscmainnet/JumpRateModel_base0bps_slope10000bps_jump50000bps_kink8000bps.json +380 -0
  84. package/deployments/bscmainnet/TokenRedeemer.json +105 -34
  85. package/deployments/bscmainnet/solcInputs/2aa2b00074af0ac8497255c1ed59bc86.json +348 -0
  86. package/deployments/bscmainnet/solcInputs/6fc684307aeb3185be94f869ed923bc8.json +348 -0
  87. package/deployments/bscmainnet.json +572 -4
  88. package/deployments/bscmainnet_addresses.json +3 -1
  89. package/dist/deploy/012-deploy-token-redeemer.js +2 -1
  90. package/dist/deployments/bscmainnet.json +572 -4
  91. package/dist/deployments/bscmainnet_addresses.json +3 -1
  92. package/dist/typechain/contracts/Governance/TokenRedeemer.d.ts +29 -1
  93. package/dist/typechain/contracts/InterfacesV8.sol/IVBNB.d.ts +73 -1
  94. package/dist/typechain/contracts/InterfacesV8.sol/IVBep20.d.ts +46 -6
  95. package/dist/typechain/contracts/InterfacesV8.sol/IVToken.d.ts +57 -1
  96. package/dist/typechain/contracts/index.d.ts +2 -0
  97. package/dist/typechain/contracts/lib/Currency.sol/CurrencyLibrary.d.ts +42 -0
  98. package/dist/typechain/contracts/lib/Currency.sol/CurrencyLibrary.js +3 -0
  99. package/dist/typechain/contracts/lib/Currency.sol/index.d.ts +1 -0
  100. package/dist/typechain/contracts/lib/Currency.sol/index.js +2 -0
  101. package/dist/typechain/contracts/lib/index.d.ts +2 -0
  102. package/dist/typechain/contracts/lib/index.js +3 -0
  103. package/dist/typechain/factories/contracts/DelegateBorrowers/MoveDebtDelegate__factory.d.ts +1 -1
  104. package/dist/typechain/factories/contracts/DelegateBorrowers/MoveDebtDelegate__factory.js +1 -1
  105. package/dist/typechain/factories/contracts/DelegateBorrowers/SwapDebtDelegate__factory.d.ts +1 -1
  106. package/dist/typechain/factories/contracts/DelegateBorrowers/SwapDebtDelegate__factory.js +1 -1
  107. package/dist/typechain/factories/contracts/Governance/TokenRedeemer__factory.d.ts +57 -6
  108. package/dist/typechain/factories/contracts/Governance/TokenRedeemer__factory.js +74 -8
  109. package/dist/typechain/factories/contracts/InterfacesV8.sol/IVBNB__factory.d.ts +62 -0
  110. package/dist/typechain/factories/contracts/InterfacesV8.sol/IVBNB__factory.js +83 -0
  111. package/dist/typechain/factories/contracts/InterfacesV8.sol/IVBep20__factory.d.ts +39 -1
  112. package/dist/typechain/factories/contracts/InterfacesV8.sol/IVBep20__factory.js +52 -1
  113. package/dist/typechain/factories/contracts/InterfacesV8.sol/IVToken__factory.d.ts +52 -0
  114. package/dist/typechain/factories/contracts/InterfacesV8.sol/IVToken__factory.js +70 -0
  115. package/dist/typechain/factories/contracts/Liquidator/BUSDLiquidator__factory.d.ts +1 -1
  116. package/dist/typechain/factories/contracts/Liquidator/BUSDLiquidator__factory.js +1 -1
  117. package/dist/typechain/factories/contracts/Liquidator/Liquidator__factory.d.ts +1 -1
  118. package/dist/typechain/factories/contracts/Liquidator/Liquidator__factory.js +1 -1
  119. package/dist/typechain/factories/contracts/index.d.ts +1 -0
  120. package/dist/typechain/factories/contracts/index.js +2 -1
  121. package/dist/typechain/factories/contracts/lib/Currency.sol/CurrencyLibrary__factory.d.ts +35 -0
  122. package/dist/typechain/factories/contracts/lib/Currency.sol/CurrencyLibrary__factory.js +58 -0
  123. package/dist/typechain/factories/contracts/lib/Currency.sol/index.d.ts +1 -0
  124. package/dist/typechain/factories/contracts/lib/Currency.sol/index.js +8 -0
  125. package/dist/typechain/factories/contracts/lib/index.d.ts +1 -0
  126. package/dist/typechain/factories/contracts/lib/index.js +30 -0
  127. package/dist/typechain/factories/contracts/test/LiquidatorHarness__factory.d.ts +1 -1
  128. package/dist/typechain/factories/contracts/test/LiquidatorHarness__factory.js +1 -1
  129. package/dist/typechain/index.d.ts +2 -0
  130. package/dist/typechain/index.js +6 -4
  131. package/package.json +1 -1
@@ -9066,6 +9066,508 @@
9066
9066
  }
9067
9067
  ]
9068
9068
  },
9069
+ "JumpRateModel_base0bps_slope10000bps_jump25000bps_kink8000bps": {
9070
+ "address": "0x9e8fbACBfbD811Fc561af3Af7df8e38dEd4c52F3",
9071
+ "abi": [
9072
+ {
9073
+ "inputs": [
9074
+ {
9075
+ "internalType": "uint256",
9076
+ "name": "baseRatePerYear",
9077
+ "type": "uint256"
9078
+ },
9079
+ {
9080
+ "internalType": "uint256",
9081
+ "name": "multiplierPerYear",
9082
+ "type": "uint256"
9083
+ },
9084
+ {
9085
+ "internalType": "uint256",
9086
+ "name": "jumpMultiplierPerYear",
9087
+ "type": "uint256"
9088
+ },
9089
+ {
9090
+ "internalType": "uint256",
9091
+ "name": "kink_",
9092
+ "type": "uint256"
9093
+ }
9094
+ ],
9095
+ "payable": false,
9096
+ "stateMutability": "nonpayable",
9097
+ "type": "constructor"
9098
+ },
9099
+ {
9100
+ "anonymous": false,
9101
+ "inputs": [
9102
+ {
9103
+ "indexed": false,
9104
+ "internalType": "uint256",
9105
+ "name": "baseRatePerBlock",
9106
+ "type": "uint256"
9107
+ },
9108
+ {
9109
+ "indexed": false,
9110
+ "internalType": "uint256",
9111
+ "name": "multiplierPerBlock",
9112
+ "type": "uint256"
9113
+ },
9114
+ {
9115
+ "indexed": false,
9116
+ "internalType": "uint256",
9117
+ "name": "jumpMultiplierPerBlock",
9118
+ "type": "uint256"
9119
+ },
9120
+ {
9121
+ "indexed": false,
9122
+ "internalType": "uint256",
9123
+ "name": "kink",
9124
+ "type": "uint256"
9125
+ }
9126
+ ],
9127
+ "name": "NewInterestParams",
9128
+ "type": "event"
9129
+ },
9130
+ {
9131
+ "constant": true,
9132
+ "inputs": [],
9133
+ "name": "baseRatePerBlock",
9134
+ "outputs": [
9135
+ {
9136
+ "internalType": "uint256",
9137
+ "name": "",
9138
+ "type": "uint256"
9139
+ }
9140
+ ],
9141
+ "payable": false,
9142
+ "stateMutability": "view",
9143
+ "type": "function"
9144
+ },
9145
+ {
9146
+ "constant": true,
9147
+ "inputs": [],
9148
+ "name": "blocksPerYear",
9149
+ "outputs": [
9150
+ {
9151
+ "internalType": "uint256",
9152
+ "name": "",
9153
+ "type": "uint256"
9154
+ }
9155
+ ],
9156
+ "payable": false,
9157
+ "stateMutability": "view",
9158
+ "type": "function"
9159
+ },
9160
+ {
9161
+ "constant": true,
9162
+ "inputs": [
9163
+ {
9164
+ "internalType": "uint256",
9165
+ "name": "cash",
9166
+ "type": "uint256"
9167
+ },
9168
+ {
9169
+ "internalType": "uint256",
9170
+ "name": "borrows",
9171
+ "type": "uint256"
9172
+ },
9173
+ {
9174
+ "internalType": "uint256",
9175
+ "name": "reserves",
9176
+ "type": "uint256"
9177
+ }
9178
+ ],
9179
+ "name": "getBorrowRate",
9180
+ "outputs": [
9181
+ {
9182
+ "internalType": "uint256",
9183
+ "name": "",
9184
+ "type": "uint256"
9185
+ }
9186
+ ],
9187
+ "payable": false,
9188
+ "stateMutability": "view",
9189
+ "type": "function"
9190
+ },
9191
+ {
9192
+ "constant": true,
9193
+ "inputs": [
9194
+ {
9195
+ "internalType": "uint256",
9196
+ "name": "cash",
9197
+ "type": "uint256"
9198
+ },
9199
+ {
9200
+ "internalType": "uint256",
9201
+ "name": "borrows",
9202
+ "type": "uint256"
9203
+ },
9204
+ {
9205
+ "internalType": "uint256",
9206
+ "name": "reserves",
9207
+ "type": "uint256"
9208
+ },
9209
+ {
9210
+ "internalType": "uint256",
9211
+ "name": "reserveFactorMantissa",
9212
+ "type": "uint256"
9213
+ }
9214
+ ],
9215
+ "name": "getSupplyRate",
9216
+ "outputs": [
9217
+ {
9218
+ "internalType": "uint256",
9219
+ "name": "",
9220
+ "type": "uint256"
9221
+ }
9222
+ ],
9223
+ "payable": false,
9224
+ "stateMutability": "view",
9225
+ "type": "function"
9226
+ },
9227
+ {
9228
+ "constant": true,
9229
+ "inputs": [],
9230
+ "name": "isInterestRateModel",
9231
+ "outputs": [
9232
+ {
9233
+ "internalType": "bool",
9234
+ "name": "",
9235
+ "type": "bool"
9236
+ }
9237
+ ],
9238
+ "payable": false,
9239
+ "stateMutability": "view",
9240
+ "type": "function"
9241
+ },
9242
+ {
9243
+ "constant": true,
9244
+ "inputs": [],
9245
+ "name": "jumpMultiplierPerBlock",
9246
+ "outputs": [
9247
+ {
9248
+ "internalType": "uint256",
9249
+ "name": "",
9250
+ "type": "uint256"
9251
+ }
9252
+ ],
9253
+ "payable": false,
9254
+ "stateMutability": "view",
9255
+ "type": "function"
9256
+ },
9257
+ {
9258
+ "constant": true,
9259
+ "inputs": [],
9260
+ "name": "kink",
9261
+ "outputs": [
9262
+ {
9263
+ "internalType": "uint256",
9264
+ "name": "",
9265
+ "type": "uint256"
9266
+ }
9267
+ ],
9268
+ "payable": false,
9269
+ "stateMutability": "view",
9270
+ "type": "function"
9271
+ },
9272
+ {
9273
+ "constant": true,
9274
+ "inputs": [],
9275
+ "name": "multiplierPerBlock",
9276
+ "outputs": [
9277
+ {
9278
+ "internalType": "uint256",
9279
+ "name": "",
9280
+ "type": "uint256"
9281
+ }
9282
+ ],
9283
+ "payable": false,
9284
+ "stateMutability": "view",
9285
+ "type": "function"
9286
+ },
9287
+ {
9288
+ "constant": true,
9289
+ "inputs": [
9290
+ {
9291
+ "internalType": "uint256",
9292
+ "name": "cash",
9293
+ "type": "uint256"
9294
+ },
9295
+ {
9296
+ "internalType": "uint256",
9297
+ "name": "borrows",
9298
+ "type": "uint256"
9299
+ },
9300
+ {
9301
+ "internalType": "uint256",
9302
+ "name": "reserves",
9303
+ "type": "uint256"
9304
+ }
9305
+ ],
9306
+ "name": "utilizationRate",
9307
+ "outputs": [
9308
+ {
9309
+ "internalType": "uint256",
9310
+ "name": "",
9311
+ "type": "uint256"
9312
+ }
9313
+ ],
9314
+ "payable": false,
9315
+ "stateMutability": "pure",
9316
+ "type": "function"
9317
+ }
9318
+ ]
9319
+ },
9320
+ "JumpRateModel_base0bps_slope10000bps_jump50000bps_kink8000bps": {
9321
+ "address": "0x958F4C84d3ad523Fa9936Dc465A123C7AD43D69B",
9322
+ "abi": [
9323
+ {
9324
+ "inputs": [
9325
+ {
9326
+ "internalType": "uint256",
9327
+ "name": "baseRatePerYear",
9328
+ "type": "uint256"
9329
+ },
9330
+ {
9331
+ "internalType": "uint256",
9332
+ "name": "multiplierPerYear",
9333
+ "type": "uint256"
9334
+ },
9335
+ {
9336
+ "internalType": "uint256",
9337
+ "name": "jumpMultiplierPerYear",
9338
+ "type": "uint256"
9339
+ },
9340
+ {
9341
+ "internalType": "uint256",
9342
+ "name": "kink_",
9343
+ "type": "uint256"
9344
+ }
9345
+ ],
9346
+ "payable": false,
9347
+ "stateMutability": "nonpayable",
9348
+ "type": "constructor"
9349
+ },
9350
+ {
9351
+ "anonymous": false,
9352
+ "inputs": [
9353
+ {
9354
+ "indexed": false,
9355
+ "internalType": "uint256",
9356
+ "name": "baseRatePerBlock",
9357
+ "type": "uint256"
9358
+ },
9359
+ {
9360
+ "indexed": false,
9361
+ "internalType": "uint256",
9362
+ "name": "multiplierPerBlock",
9363
+ "type": "uint256"
9364
+ },
9365
+ {
9366
+ "indexed": false,
9367
+ "internalType": "uint256",
9368
+ "name": "jumpMultiplierPerBlock",
9369
+ "type": "uint256"
9370
+ },
9371
+ {
9372
+ "indexed": false,
9373
+ "internalType": "uint256",
9374
+ "name": "kink",
9375
+ "type": "uint256"
9376
+ }
9377
+ ],
9378
+ "name": "NewInterestParams",
9379
+ "type": "event"
9380
+ },
9381
+ {
9382
+ "constant": true,
9383
+ "inputs": [],
9384
+ "name": "baseRatePerBlock",
9385
+ "outputs": [
9386
+ {
9387
+ "internalType": "uint256",
9388
+ "name": "",
9389
+ "type": "uint256"
9390
+ }
9391
+ ],
9392
+ "payable": false,
9393
+ "stateMutability": "view",
9394
+ "type": "function"
9395
+ },
9396
+ {
9397
+ "constant": true,
9398
+ "inputs": [],
9399
+ "name": "blocksPerYear",
9400
+ "outputs": [
9401
+ {
9402
+ "internalType": "uint256",
9403
+ "name": "",
9404
+ "type": "uint256"
9405
+ }
9406
+ ],
9407
+ "payable": false,
9408
+ "stateMutability": "view",
9409
+ "type": "function"
9410
+ },
9411
+ {
9412
+ "constant": true,
9413
+ "inputs": [
9414
+ {
9415
+ "internalType": "uint256",
9416
+ "name": "cash",
9417
+ "type": "uint256"
9418
+ },
9419
+ {
9420
+ "internalType": "uint256",
9421
+ "name": "borrows",
9422
+ "type": "uint256"
9423
+ },
9424
+ {
9425
+ "internalType": "uint256",
9426
+ "name": "reserves",
9427
+ "type": "uint256"
9428
+ }
9429
+ ],
9430
+ "name": "getBorrowRate",
9431
+ "outputs": [
9432
+ {
9433
+ "internalType": "uint256",
9434
+ "name": "",
9435
+ "type": "uint256"
9436
+ }
9437
+ ],
9438
+ "payable": false,
9439
+ "stateMutability": "view",
9440
+ "type": "function"
9441
+ },
9442
+ {
9443
+ "constant": true,
9444
+ "inputs": [
9445
+ {
9446
+ "internalType": "uint256",
9447
+ "name": "cash",
9448
+ "type": "uint256"
9449
+ },
9450
+ {
9451
+ "internalType": "uint256",
9452
+ "name": "borrows",
9453
+ "type": "uint256"
9454
+ },
9455
+ {
9456
+ "internalType": "uint256",
9457
+ "name": "reserves",
9458
+ "type": "uint256"
9459
+ },
9460
+ {
9461
+ "internalType": "uint256",
9462
+ "name": "reserveFactorMantissa",
9463
+ "type": "uint256"
9464
+ }
9465
+ ],
9466
+ "name": "getSupplyRate",
9467
+ "outputs": [
9468
+ {
9469
+ "internalType": "uint256",
9470
+ "name": "",
9471
+ "type": "uint256"
9472
+ }
9473
+ ],
9474
+ "payable": false,
9475
+ "stateMutability": "view",
9476
+ "type": "function"
9477
+ },
9478
+ {
9479
+ "constant": true,
9480
+ "inputs": [],
9481
+ "name": "isInterestRateModel",
9482
+ "outputs": [
9483
+ {
9484
+ "internalType": "bool",
9485
+ "name": "",
9486
+ "type": "bool"
9487
+ }
9488
+ ],
9489
+ "payable": false,
9490
+ "stateMutability": "view",
9491
+ "type": "function"
9492
+ },
9493
+ {
9494
+ "constant": true,
9495
+ "inputs": [],
9496
+ "name": "jumpMultiplierPerBlock",
9497
+ "outputs": [
9498
+ {
9499
+ "internalType": "uint256",
9500
+ "name": "",
9501
+ "type": "uint256"
9502
+ }
9503
+ ],
9504
+ "payable": false,
9505
+ "stateMutability": "view",
9506
+ "type": "function"
9507
+ },
9508
+ {
9509
+ "constant": true,
9510
+ "inputs": [],
9511
+ "name": "kink",
9512
+ "outputs": [
9513
+ {
9514
+ "internalType": "uint256",
9515
+ "name": "",
9516
+ "type": "uint256"
9517
+ }
9518
+ ],
9519
+ "payable": false,
9520
+ "stateMutability": "view",
9521
+ "type": "function"
9522
+ },
9523
+ {
9524
+ "constant": true,
9525
+ "inputs": [],
9526
+ "name": "multiplierPerBlock",
9527
+ "outputs": [
9528
+ {
9529
+ "internalType": "uint256",
9530
+ "name": "",
9531
+ "type": "uint256"
9532
+ }
9533
+ ],
9534
+ "payable": false,
9535
+ "stateMutability": "view",
9536
+ "type": "function"
9537
+ },
9538
+ {
9539
+ "constant": true,
9540
+ "inputs": [
9541
+ {
9542
+ "internalType": "uint256",
9543
+ "name": "cash",
9544
+ "type": "uint256"
9545
+ },
9546
+ {
9547
+ "internalType": "uint256",
9548
+ "name": "borrows",
9549
+ "type": "uint256"
9550
+ },
9551
+ {
9552
+ "internalType": "uint256",
9553
+ "name": "reserves",
9554
+ "type": "uint256"
9555
+ }
9556
+ ],
9557
+ "name": "utilizationRate",
9558
+ "outputs": [
9559
+ {
9560
+ "internalType": "uint256",
9561
+ "name": "",
9562
+ "type": "uint256"
9563
+ }
9564
+ ],
9565
+ "payable": false,
9566
+ "stateMutability": "pure",
9567
+ "type": "function"
9568
+ }
9569
+ ]
9570
+ },
9069
9571
  "JumpRateModel_base0bps_slope687bps_jump25000bps_kink8000bps": {
9070
9572
  "address": "0xB105F9B511836cc7dF9F3dD0Ec4873766b5b6660",
9071
9573
  "abi": [
@@ -35605,7 +36107,7 @@
35605
36107
  ]
35606
36108
  },
35607
36109
  "TokenRedeemer": {
35608
- "address": "0x67B10f3BC6B141D67c598C73CEe45E6635292Acd",
36110
+ "address": "0xd039B647603219D6D39C051c25f945c0E53d75F3",
35609
36111
  "abi": [
35610
36112
  {
35611
36113
  "inputs": [
@@ -35613,11 +36115,37 @@
35613
36115
  "internalType": "address",
35614
36116
  "name": "owner_",
35615
36117
  "type": "address"
36118
+ },
36119
+ {
36120
+ "internalType": "contract IVBNB",
36121
+ "name": "vBNB",
36122
+ "type": "address"
35616
36123
  }
35617
36124
  ],
35618
36125
  "stateMutability": "nonpayable",
35619
36126
  "type": "constructor"
35620
36127
  },
36128
+ {
36129
+ "inputs": [
36130
+ {
36131
+ "internalType": "uint256",
36132
+ "name": "errCode",
36133
+ "type": "uint256"
36134
+ }
36135
+ ],
36136
+ "name": "AccrueInterestFailed",
36137
+ "type": "error"
36138
+ },
36139
+ {
36140
+ "inputs": [],
36141
+ "name": "NativeTokenTransferFailed",
36142
+ "type": "error"
36143
+ },
36144
+ {
36145
+ "inputs": [],
36146
+ "name": "NativeTransferFailed",
36147
+ "type": "error"
36148
+ },
35621
36149
  {
35622
36150
  "inputs": [
35623
36151
  {
@@ -35683,6 +36211,19 @@
35683
36211
  "name": "OwnershipTransferred",
35684
36212
  "type": "event"
35685
36213
  },
36214
+ {
36215
+ "inputs": [],
36216
+ "name": "VBNB",
36217
+ "outputs": [
36218
+ {
36219
+ "internalType": "contract IVBNB",
36220
+ "name": "",
36221
+ "type": "address"
36222
+ }
36223
+ ],
36224
+ "stateMutability": "view",
36225
+ "type": "function"
36226
+ },
35686
36227
  {
35687
36228
  "inputs": [],
35688
36229
  "name": "acceptOwnership",
@@ -35719,7 +36260,30 @@
35719
36260
  {
35720
36261
  "inputs": [
35721
36262
  {
35722
- "internalType": "contract IVBep20",
36263
+ "internalType": "contract IVToken",
36264
+ "name": "vToken",
36265
+ "type": "address"
36266
+ },
36267
+ {
36268
+ "internalType": "address[]",
36269
+ "name": "borrowers",
36270
+ "type": "address[]"
36271
+ },
36272
+ {
36273
+ "internalType": "address",
36274
+ "name": "receiver",
36275
+ "type": "address"
36276
+ }
36277
+ ],
36278
+ "name": "redeemAndBatchRepay",
36279
+ "outputs": [],
36280
+ "stateMutability": "nonpayable",
36281
+ "type": "function"
36282
+ },
36283
+ {
36284
+ "inputs": [
36285
+ {
36286
+ "internalType": "contract IVToken",
35723
36287
  "name": "vToken",
35724
36288
  "type": "address"
35725
36289
  },
@@ -35737,7 +36301,7 @@
35737
36301
  {
35738
36302
  "inputs": [
35739
36303
  {
35740
- "internalType": "contract IVBep20",
36304
+ "internalType": "contract IVToken",
35741
36305
  "name": "vToken",
35742
36306
  "type": "address"
35743
36307
  },
@@ -35772,7 +36336,7 @@
35772
36336
  {
35773
36337
  "inputs": [
35774
36338
  {
35775
- "internalType": "contract IERC20",
36339
+ "internalType": "address",
35776
36340
  "name": "token",
35777
36341
  "type": "address"
35778
36342
  },
@@ -35799,6 +36363,10 @@
35799
36363
  "outputs": [],
35800
36364
  "stateMutability": "nonpayable",
35801
36365
  "type": "function"
36366
+ },
36367
+ {
36368
+ "stateMutability": "payable",
36369
+ "type": "receive"
35802
36370
  }
35803
36371
  ]
35804
36372
  },
@@ -25,6 +25,8 @@
25
25
  "FIL_Implementation": "0xba5fe23f8a3a24bed3236f05f2fcf35fd0bf0b5c",
26
26
  "FIL_Proxy": "0x0D8Ce2A99Bb6e3B7Db580eD848240e4a0F9aE153",
27
27
  "InterestRateModelVBNB": "0xF558Be24F2CACb65a4BB41A155631C83B15388F1",
28
+ "JumpRateModel_base0bps_slope10000bps_jump25000bps_kink8000bps": "0x9e8fbACBfbD811Fc561af3Af7df8e38dEd4c52F3",
29
+ "JumpRateModel_base0bps_slope10000bps_jump50000bps_kink8000bps": "0x958F4C84d3ad523Fa9936Dc465A123C7AD43D69B",
28
30
  "JumpRateModel_base0bps_slope687bps_jump25000bps_kink8000bps": "0xB105F9B511836cc7dF9F3dD0Ec4873766b5b6660",
29
31
  "LINK": "0xF8A0BF9cF54Bb92F17374d9e9A321E6a111a51bD",
30
32
  "LTC": "0x4338665CBB7B2485A8855A139b75D5e34AB0DB94",
@@ -67,7 +69,7 @@
67
69
  "TUSDOLD_Proxy": "0x14016E85a25aeb13065688cAFB43044C2ef86784",
68
70
  "TUSD_Implementation": "0x0d7adc70a18a5aef0bd6ecb098e1da0244c57711",
69
71
  "TUSD_Proxy": "0x40af3827F39D0EAcBF4A168f8D4ee67c121D11c9",
70
- "TokenRedeemer": "0x67B10f3BC6B141D67c598C73CEe45E6635292Acd",
72
+ "TokenRedeemer": "0xd039B647603219D6D39C051c25f945c0E53d75F3",
71
73
  "USDC": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
72
74
  "USDC_Implementation": "0xba5fe23f8a3a24bed3236f05f2fcf35fd0bf0b5c",
73
75
  "USDC_Proxy": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
@@ -5,12 +5,13 @@ const func = async function (hre) {
5
5
  const { deploy } = deployments;
6
6
  const { deployer } = await getNamedAccounts();
7
7
  const normalVipTimelockAddress = (await deployments.get("NormalTimelock")).address;
8
+ const vBNBAddress = (await deployments.get("vBNB")).address;
8
9
  await deploy("TokenRedeemer", {
9
10
  contract: "TokenRedeemer",
10
11
  from: deployer,
11
12
  log: true,
12
13
  autoMine: true,
13
- args: [normalVipTimelockAddress],
14
+ args: [normalVipTimelockAddress, vBNBAddress],
14
15
  });
15
16
  };
16
17
  func.tags = ["TokenRedeemer"];