@venusprotocol/venus-protocol 9.4.0 → 9.5.0-dev.2

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 (38) hide show
  1. package/README.md +11 -1
  2. package/deploy/002-interest-rate-model.ts +57 -0
  3. package/deployments/bscmainnet/JumpRateModel_base0bps_slope1750bps_jump25000bps_kink8000bps.json +380 -0
  4. package/deployments/bscmainnet/TwoKinks_base0bps_slope1500bps_kink8000bps_slope29000bps_base20bps_kink29000bps_jump30000bps.json +436 -0
  5. package/deployments/bscmainnet.json +542 -0
  6. package/deployments/bscmainnet_addresses.json +2 -0
  7. package/deployments/bsctestnet/vAAVE.json +3326 -0
  8. package/deployments/bsctestnet/vADA.json +3244 -0
  9. package/deployments/bsctestnet/{vBTC.json → vBTCB.json} +55 -15
  10. package/deployments/bsctestnet/vBUSD.json +55 -15
  11. package/deployments/bsctestnet/vCAKE.json +1493 -0
  12. package/deployments/bsctestnet/vDOGE.json +3269 -0
  13. package/deployments/bsctestnet/vETH.json +55 -15
  14. package/deployments/bsctestnet/vFDUSD.json +3 -15
  15. package/deployments/bsctestnet/vLTC.json +55 -15
  16. package/deployments/bsctestnet/vMATIC.json +1550 -0
  17. package/deployments/bsctestnet/vSXP.json +55 -15
  18. package/deployments/bsctestnet/vSolvBTC.json +1776 -697
  19. package/deployments/bsctestnet/vTRX.json +56 -16
  20. package/deployments/bsctestnet/vTRXOLD.json +3326 -0
  21. package/deployments/bsctestnet/vTUSD.json +55 -15
  22. package/deployments/bsctestnet/vTUSDOLD.json +3326 -0
  23. package/deployments/bsctestnet/vTWT.json +1776 -697
  24. package/deployments/bsctestnet/vUNI.json +3344 -0
  25. package/deployments/bsctestnet/vUSDC.json +55 -15
  26. package/deployments/bsctestnet/vUSDT.json +55 -15
  27. package/deployments/bsctestnet/vWBETH.json +269 -5
  28. package/deployments/bsctestnet/vXRP.json +55 -15
  29. package/deployments/bsctestnet/vXVS.json +55 -15
  30. package/deployments/bsctestnet.json +30079 -2973
  31. package/deployments/bsctestnet_addresses.json +10 -2
  32. package/dist/deploy/002-interest-rate-model.js +51 -0
  33. package/dist/deployments/bscmainnet.json +542 -0
  34. package/dist/deployments/bsctestnet.json +30079 -2973
  35. package/dist/hardhat.config.js +24 -3
  36. package/dist/type-extensions.d.ts +6 -0
  37. package/dist/type-extensions.js +3 -0
  38. package/package.json +1 -1
@@ -8545,6 +8545,257 @@
8545
8545
  }
8546
8546
  ]
8547
8547
  },
8548
+ "JumpRateModel_base0bps_slope1750bps_jump25000bps_kink8000bps": {
8549
+ "address": "0x0be3ca99FBBE16b86C3b00E2C4c30C3892F31647",
8550
+ "abi": [
8551
+ {
8552
+ "inputs": [
8553
+ {
8554
+ "internalType": "uint256",
8555
+ "name": "baseRatePerYear",
8556
+ "type": "uint256"
8557
+ },
8558
+ {
8559
+ "internalType": "uint256",
8560
+ "name": "multiplierPerYear",
8561
+ "type": "uint256"
8562
+ },
8563
+ {
8564
+ "internalType": "uint256",
8565
+ "name": "jumpMultiplierPerYear",
8566
+ "type": "uint256"
8567
+ },
8568
+ {
8569
+ "internalType": "uint256",
8570
+ "name": "kink_",
8571
+ "type": "uint256"
8572
+ }
8573
+ ],
8574
+ "payable": false,
8575
+ "stateMutability": "nonpayable",
8576
+ "type": "constructor"
8577
+ },
8578
+ {
8579
+ "anonymous": false,
8580
+ "inputs": [
8581
+ {
8582
+ "indexed": false,
8583
+ "internalType": "uint256",
8584
+ "name": "baseRatePerBlock",
8585
+ "type": "uint256"
8586
+ },
8587
+ {
8588
+ "indexed": false,
8589
+ "internalType": "uint256",
8590
+ "name": "multiplierPerBlock",
8591
+ "type": "uint256"
8592
+ },
8593
+ {
8594
+ "indexed": false,
8595
+ "internalType": "uint256",
8596
+ "name": "jumpMultiplierPerBlock",
8597
+ "type": "uint256"
8598
+ },
8599
+ {
8600
+ "indexed": false,
8601
+ "internalType": "uint256",
8602
+ "name": "kink",
8603
+ "type": "uint256"
8604
+ }
8605
+ ],
8606
+ "name": "NewInterestParams",
8607
+ "type": "event"
8608
+ },
8609
+ {
8610
+ "constant": true,
8611
+ "inputs": [],
8612
+ "name": "baseRatePerBlock",
8613
+ "outputs": [
8614
+ {
8615
+ "internalType": "uint256",
8616
+ "name": "",
8617
+ "type": "uint256"
8618
+ }
8619
+ ],
8620
+ "payable": false,
8621
+ "stateMutability": "view",
8622
+ "type": "function"
8623
+ },
8624
+ {
8625
+ "constant": true,
8626
+ "inputs": [],
8627
+ "name": "blocksPerYear",
8628
+ "outputs": [
8629
+ {
8630
+ "internalType": "uint256",
8631
+ "name": "",
8632
+ "type": "uint256"
8633
+ }
8634
+ ],
8635
+ "payable": false,
8636
+ "stateMutability": "view",
8637
+ "type": "function"
8638
+ },
8639
+ {
8640
+ "constant": true,
8641
+ "inputs": [
8642
+ {
8643
+ "internalType": "uint256",
8644
+ "name": "cash",
8645
+ "type": "uint256"
8646
+ },
8647
+ {
8648
+ "internalType": "uint256",
8649
+ "name": "borrows",
8650
+ "type": "uint256"
8651
+ },
8652
+ {
8653
+ "internalType": "uint256",
8654
+ "name": "reserves",
8655
+ "type": "uint256"
8656
+ }
8657
+ ],
8658
+ "name": "getBorrowRate",
8659
+ "outputs": [
8660
+ {
8661
+ "internalType": "uint256",
8662
+ "name": "",
8663
+ "type": "uint256"
8664
+ }
8665
+ ],
8666
+ "payable": false,
8667
+ "stateMutability": "view",
8668
+ "type": "function"
8669
+ },
8670
+ {
8671
+ "constant": true,
8672
+ "inputs": [
8673
+ {
8674
+ "internalType": "uint256",
8675
+ "name": "cash",
8676
+ "type": "uint256"
8677
+ },
8678
+ {
8679
+ "internalType": "uint256",
8680
+ "name": "borrows",
8681
+ "type": "uint256"
8682
+ },
8683
+ {
8684
+ "internalType": "uint256",
8685
+ "name": "reserves",
8686
+ "type": "uint256"
8687
+ },
8688
+ {
8689
+ "internalType": "uint256",
8690
+ "name": "reserveFactorMantissa",
8691
+ "type": "uint256"
8692
+ }
8693
+ ],
8694
+ "name": "getSupplyRate",
8695
+ "outputs": [
8696
+ {
8697
+ "internalType": "uint256",
8698
+ "name": "",
8699
+ "type": "uint256"
8700
+ }
8701
+ ],
8702
+ "payable": false,
8703
+ "stateMutability": "view",
8704
+ "type": "function"
8705
+ },
8706
+ {
8707
+ "constant": true,
8708
+ "inputs": [],
8709
+ "name": "isInterestRateModel",
8710
+ "outputs": [
8711
+ {
8712
+ "internalType": "bool",
8713
+ "name": "",
8714
+ "type": "bool"
8715
+ }
8716
+ ],
8717
+ "payable": false,
8718
+ "stateMutability": "view",
8719
+ "type": "function"
8720
+ },
8721
+ {
8722
+ "constant": true,
8723
+ "inputs": [],
8724
+ "name": "jumpMultiplierPerBlock",
8725
+ "outputs": [
8726
+ {
8727
+ "internalType": "uint256",
8728
+ "name": "",
8729
+ "type": "uint256"
8730
+ }
8731
+ ],
8732
+ "payable": false,
8733
+ "stateMutability": "view",
8734
+ "type": "function"
8735
+ },
8736
+ {
8737
+ "constant": true,
8738
+ "inputs": [],
8739
+ "name": "kink",
8740
+ "outputs": [
8741
+ {
8742
+ "internalType": "uint256",
8743
+ "name": "",
8744
+ "type": "uint256"
8745
+ }
8746
+ ],
8747
+ "payable": false,
8748
+ "stateMutability": "view",
8749
+ "type": "function"
8750
+ },
8751
+ {
8752
+ "constant": true,
8753
+ "inputs": [],
8754
+ "name": "multiplierPerBlock",
8755
+ "outputs": [
8756
+ {
8757
+ "internalType": "uint256",
8758
+ "name": "",
8759
+ "type": "uint256"
8760
+ }
8761
+ ],
8762
+ "payable": false,
8763
+ "stateMutability": "view",
8764
+ "type": "function"
8765
+ },
8766
+ {
8767
+ "constant": true,
8768
+ "inputs": [
8769
+ {
8770
+ "internalType": "uint256",
8771
+ "name": "cash",
8772
+ "type": "uint256"
8773
+ },
8774
+ {
8775
+ "internalType": "uint256",
8776
+ "name": "borrows",
8777
+ "type": "uint256"
8778
+ },
8779
+ {
8780
+ "internalType": "uint256",
8781
+ "name": "reserves",
8782
+ "type": "uint256"
8783
+ }
8784
+ ],
8785
+ "name": "utilizationRate",
8786
+ "outputs": [
8787
+ {
8788
+ "internalType": "uint256",
8789
+ "name": "",
8790
+ "type": "uint256"
8791
+ }
8792
+ ],
8793
+ "payable": false,
8794
+ "stateMutability": "pure",
8795
+ "type": "function"
8796
+ }
8797
+ ]
8798
+ },
8548
8799
  "JumpRateModel_base0bps_slope687bps_jump25000bps_kink8000bps": {
8549
8800
  "address": "0xB105F9B511836cc7dF9F3dD0Ec4873766b5b6660",
8550
8801
  "abi": [
@@ -34012,6 +34263,297 @@
34012
34263
  }
34013
34264
  ]
34014
34265
  },
34266
+ "TwoKinks_base0bps_slope1500bps_kink8000bps_slope29000bps_base20bps_kink29000bps_jump30000bps": {
34267
+ "address": "0x4D712A88Ff15a7147a9966c5ED2ccb392F1760c9",
34268
+ "abi": [
34269
+ {
34270
+ "inputs": [
34271
+ {
34272
+ "internalType": "int256",
34273
+ "name": "baseRatePerYear_",
34274
+ "type": "int256"
34275
+ },
34276
+ {
34277
+ "internalType": "int256",
34278
+ "name": "multiplierPerYear_",
34279
+ "type": "int256"
34280
+ },
34281
+ {
34282
+ "internalType": "int256",
34283
+ "name": "kink1_",
34284
+ "type": "int256"
34285
+ },
34286
+ {
34287
+ "internalType": "int256",
34288
+ "name": "multiplier2PerYear_",
34289
+ "type": "int256"
34290
+ },
34291
+ {
34292
+ "internalType": "int256",
34293
+ "name": "baseRate2PerYear_",
34294
+ "type": "int256"
34295
+ },
34296
+ {
34297
+ "internalType": "int256",
34298
+ "name": "kink2_",
34299
+ "type": "int256"
34300
+ },
34301
+ {
34302
+ "internalType": "int256",
34303
+ "name": "jumpMultiplierPerYear_",
34304
+ "type": "int256"
34305
+ }
34306
+ ],
34307
+ "stateMutability": "nonpayable",
34308
+ "type": "constructor"
34309
+ },
34310
+ {
34311
+ "inputs": [],
34312
+ "name": "InvalidKink",
34313
+ "type": "error"
34314
+ },
34315
+ {
34316
+ "inputs": [],
34317
+ "name": "NegativeValueNotAllowed",
34318
+ "type": "error"
34319
+ },
34320
+ {
34321
+ "inputs": [],
34322
+ "name": "BASE_RATE_2_PER_BLOCK",
34323
+ "outputs": [
34324
+ {
34325
+ "internalType": "int256",
34326
+ "name": "",
34327
+ "type": "int256"
34328
+ }
34329
+ ],
34330
+ "stateMutability": "view",
34331
+ "type": "function"
34332
+ },
34333
+ {
34334
+ "inputs": [],
34335
+ "name": "BASE_RATE_PER_BLOCK",
34336
+ "outputs": [
34337
+ {
34338
+ "internalType": "int256",
34339
+ "name": "",
34340
+ "type": "int256"
34341
+ }
34342
+ ],
34343
+ "stateMutability": "view",
34344
+ "type": "function"
34345
+ },
34346
+ {
34347
+ "inputs": [],
34348
+ "name": "BLOCKS_PER_YEAR",
34349
+ "outputs": [
34350
+ {
34351
+ "internalType": "int256",
34352
+ "name": "",
34353
+ "type": "int256"
34354
+ }
34355
+ ],
34356
+ "stateMutability": "view",
34357
+ "type": "function"
34358
+ },
34359
+ {
34360
+ "inputs": [],
34361
+ "name": "JUMP_MULTIPLIER_PER_BLOCK",
34362
+ "outputs": [
34363
+ {
34364
+ "internalType": "int256",
34365
+ "name": "",
34366
+ "type": "int256"
34367
+ }
34368
+ ],
34369
+ "stateMutability": "view",
34370
+ "type": "function"
34371
+ },
34372
+ {
34373
+ "inputs": [],
34374
+ "name": "KINK_1",
34375
+ "outputs": [
34376
+ {
34377
+ "internalType": "int256",
34378
+ "name": "",
34379
+ "type": "int256"
34380
+ }
34381
+ ],
34382
+ "stateMutability": "view",
34383
+ "type": "function"
34384
+ },
34385
+ {
34386
+ "inputs": [],
34387
+ "name": "KINK_2",
34388
+ "outputs": [
34389
+ {
34390
+ "internalType": "int256",
34391
+ "name": "",
34392
+ "type": "int256"
34393
+ }
34394
+ ],
34395
+ "stateMutability": "view",
34396
+ "type": "function"
34397
+ },
34398
+ {
34399
+ "inputs": [],
34400
+ "name": "MULTIPLIER_2_PER_BLOCK",
34401
+ "outputs": [
34402
+ {
34403
+ "internalType": "int256",
34404
+ "name": "",
34405
+ "type": "int256"
34406
+ }
34407
+ ],
34408
+ "stateMutability": "view",
34409
+ "type": "function"
34410
+ },
34411
+ {
34412
+ "inputs": [],
34413
+ "name": "MULTIPLIER_PER_BLOCK",
34414
+ "outputs": [
34415
+ {
34416
+ "internalType": "int256",
34417
+ "name": "",
34418
+ "type": "int256"
34419
+ }
34420
+ ],
34421
+ "stateMutability": "view",
34422
+ "type": "function"
34423
+ },
34424
+ {
34425
+ "inputs": [],
34426
+ "name": "RATE_1",
34427
+ "outputs": [
34428
+ {
34429
+ "internalType": "int256",
34430
+ "name": "",
34431
+ "type": "int256"
34432
+ }
34433
+ ],
34434
+ "stateMutability": "view",
34435
+ "type": "function"
34436
+ },
34437
+ {
34438
+ "inputs": [],
34439
+ "name": "RATE_2",
34440
+ "outputs": [
34441
+ {
34442
+ "internalType": "int256",
34443
+ "name": "",
34444
+ "type": "int256"
34445
+ }
34446
+ ],
34447
+ "stateMutability": "view",
34448
+ "type": "function"
34449
+ },
34450
+ {
34451
+ "inputs": [
34452
+ {
34453
+ "internalType": "uint256",
34454
+ "name": "cash",
34455
+ "type": "uint256"
34456
+ },
34457
+ {
34458
+ "internalType": "uint256",
34459
+ "name": "borrows",
34460
+ "type": "uint256"
34461
+ },
34462
+ {
34463
+ "internalType": "uint256",
34464
+ "name": "reserves",
34465
+ "type": "uint256"
34466
+ }
34467
+ ],
34468
+ "name": "getBorrowRate",
34469
+ "outputs": [
34470
+ {
34471
+ "internalType": "uint256",
34472
+ "name": "",
34473
+ "type": "uint256"
34474
+ }
34475
+ ],
34476
+ "stateMutability": "view",
34477
+ "type": "function"
34478
+ },
34479
+ {
34480
+ "inputs": [
34481
+ {
34482
+ "internalType": "uint256",
34483
+ "name": "cash",
34484
+ "type": "uint256"
34485
+ },
34486
+ {
34487
+ "internalType": "uint256",
34488
+ "name": "borrows",
34489
+ "type": "uint256"
34490
+ },
34491
+ {
34492
+ "internalType": "uint256",
34493
+ "name": "reserves",
34494
+ "type": "uint256"
34495
+ },
34496
+ {
34497
+ "internalType": "uint256",
34498
+ "name": "reserveFactorMantissa",
34499
+ "type": "uint256"
34500
+ }
34501
+ ],
34502
+ "name": "getSupplyRate",
34503
+ "outputs": [
34504
+ {
34505
+ "internalType": "uint256",
34506
+ "name": "",
34507
+ "type": "uint256"
34508
+ }
34509
+ ],
34510
+ "stateMutability": "view",
34511
+ "type": "function"
34512
+ },
34513
+ {
34514
+ "inputs": [],
34515
+ "name": "isInterestRateModel",
34516
+ "outputs": [
34517
+ {
34518
+ "internalType": "bool",
34519
+ "name": "",
34520
+ "type": "bool"
34521
+ }
34522
+ ],
34523
+ "stateMutability": "view",
34524
+ "type": "function"
34525
+ },
34526
+ {
34527
+ "inputs": [
34528
+ {
34529
+ "internalType": "uint256",
34530
+ "name": "cash",
34531
+ "type": "uint256"
34532
+ },
34533
+ {
34534
+ "internalType": "uint256",
34535
+ "name": "borrows",
34536
+ "type": "uint256"
34537
+ },
34538
+ {
34539
+ "internalType": "uint256",
34540
+ "name": "reserves",
34541
+ "type": "uint256"
34542
+ }
34543
+ ],
34544
+ "name": "utilizationRate",
34545
+ "outputs": [
34546
+ {
34547
+ "internalType": "uint256",
34548
+ "name": "",
34549
+ "type": "uint256"
34550
+ }
34551
+ ],
34552
+ "stateMutability": "pure",
34553
+ "type": "function"
34554
+ }
34555
+ ]
34556
+ },
34015
34557
  "USDC": {
34016
34558
  "address": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
34017
34559
  "abi": [
@@ -24,6 +24,7 @@
24
24
  "JumpRateModel_base0bps_slope1000bps_jump50000bps_kink8000bps": "0x05c68eE7c9c66BE3a42476fe3838DE65ddE968f1",
25
25
  "JumpRateModel_base0bps_slope1250bps_jump25000bps_kink8000bps": "0x1485A27D95D3d2878a6641055dD3a643F296CCf6",
26
26
  "JumpRateModel_base0bps_slope1250bps_jump50000bps_kink8000bps": "0x9Fca5d66Cc0DF990080825051E825A8104a7ffA4",
27
+ "JumpRateModel_base0bps_slope1750bps_jump25000bps_kink8000bps": "0x0be3ca99FBBE16b86C3b00E2C4c30C3892F31647",
27
28
  "JumpRateModel_base0bps_slope687bps_jump25000bps_kink8000bps": "0xB105F9B511836cc7dF9F3dD0Ec4873766b5b6660",
28
29
  "JumpRateModel_base0bps_slope750bps_jump50000bps_kink8000bps": "0xdEf4b9462223c9a44E61d217a145063C7836FD7B",
29
30
  "JumpRateModel_base0bps_slope875bps_jump25000bps_kink8000bps": "0xBe4609d972FdEBAa9DC870F4A957F40C301bEb1D",
@@ -62,6 +63,7 @@
62
63
  "TUSD": "0x40af3827F39D0EAcBF4A168f8D4ee67c121D11c9",
63
64
  "TUSDOLD": "0x14016E85a25aeb13065688cAFB43044C2ef86784",
64
65
  "TokenRedeemer": "0xC53ffda840B51068C64b2E052a5715043f634bcd",
66
+ "TwoKinks_base0bps_slope1500bps_kink8000bps_slope29000bps_base20bps_kink29000bps_jump30000bps": "0x4D712A88Ff15a7147a9966c5ED2ccb392F1760c9",
65
67
  "USDC": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
66
68
  "USDT": "0x55d398326f99059fF775485246999027B3197955",
67
69
  "UST": "0x3d4350cD54aeF9f9b2C29435e0fa809957B3F30a",