@venusprotocol/venus-protocol 9.8.0-dev.20 → 9.8.0-dev.22
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.
- package/deploy/005-deploy-VTreasuryV8.ts +0 -1
- package/deploy/009-configure-vaults.ts +0 -1
- package/deployments/bscmainnet/JumpRateModel_base25bps_slope367bps_jump20000bps_kink7500bps_bpy42048000.json +394 -0
- package/deployments/bscmainnet.json +256 -0
- package/deployments/bscmainnet_addresses.json +1 -0
- package/dist/deploy/005-deploy-VTreasuryV8.js +0 -1
- package/dist/deploy/009-configure-vaults.js +0 -1
- package/dist/deployments/bscmainnet.json +256 -0
- package/dist/hardhat.config.js +0 -15
- package/dist/helpers/chains.d.ts +3 -4
- package/dist/helpers/chains.js +0 -2
- package/dist/helpers/markets/bscmainnet.d.ts +2 -2
- package/dist/helpers/markets/bscmainnet.js +2 -2
- package/dist/helpers/markets/index.d.ts +0 -1
- package/dist/helpers/markets/index.js +0 -1
- package/dist/helpers/tokens/index.d.ts +2 -5
- package/dist/helpers/tokens/index.js +0 -1
- package/package.json +1 -1
- package/deployments/berachainbepolia/.chainId +0 -1
- package/deployments/berachainbepolia/VTreasuryV8.json +0 -329
- package/deployments/berachainbepolia/solcInputs/fd1cb03a4a5faafbc2c9f8079ca92876.json +0 -283
- package/deployments/berachainbepolia.json +0 -200
- package/deployments/berachainbepolia_addresses.json +0 -7
|
@@ -23343,6 +23343,262 @@
|
|
|
23343
23343
|
}
|
|
23344
23344
|
]
|
|
23345
23345
|
},
|
|
23346
|
+
"JumpRateModel_base25bps_slope367bps_jump20000bps_kink7500bps_bpy42048000": {
|
|
23347
|
+
"address": "0xE74FE49e07c8f0Cc4398a481206e2d835b88b8F4",
|
|
23348
|
+
"abi": [
|
|
23349
|
+
{
|
|
23350
|
+
"inputs": [
|
|
23351
|
+
{
|
|
23352
|
+
"internalType": "uint256",
|
|
23353
|
+
"name": "baseRatePerYear",
|
|
23354
|
+
"type": "uint256"
|
|
23355
|
+
},
|
|
23356
|
+
{
|
|
23357
|
+
"internalType": "uint256",
|
|
23358
|
+
"name": "multiplierPerYear",
|
|
23359
|
+
"type": "uint256"
|
|
23360
|
+
},
|
|
23361
|
+
{
|
|
23362
|
+
"internalType": "uint256",
|
|
23363
|
+
"name": "jumpMultiplierPerYear",
|
|
23364
|
+
"type": "uint256"
|
|
23365
|
+
},
|
|
23366
|
+
{
|
|
23367
|
+
"internalType": "uint256",
|
|
23368
|
+
"name": "kink_",
|
|
23369
|
+
"type": "uint256"
|
|
23370
|
+
},
|
|
23371
|
+
{
|
|
23372
|
+
"internalType": "uint256",
|
|
23373
|
+
"name": "blocksPerYear_",
|
|
23374
|
+
"type": "uint256"
|
|
23375
|
+
}
|
|
23376
|
+
],
|
|
23377
|
+
"payable": false,
|
|
23378
|
+
"stateMutability": "nonpayable",
|
|
23379
|
+
"type": "constructor"
|
|
23380
|
+
},
|
|
23381
|
+
{
|
|
23382
|
+
"anonymous": false,
|
|
23383
|
+
"inputs": [
|
|
23384
|
+
{
|
|
23385
|
+
"indexed": false,
|
|
23386
|
+
"internalType": "uint256",
|
|
23387
|
+
"name": "baseRatePerBlock",
|
|
23388
|
+
"type": "uint256"
|
|
23389
|
+
},
|
|
23390
|
+
{
|
|
23391
|
+
"indexed": false,
|
|
23392
|
+
"internalType": "uint256",
|
|
23393
|
+
"name": "multiplierPerBlock",
|
|
23394
|
+
"type": "uint256"
|
|
23395
|
+
},
|
|
23396
|
+
{
|
|
23397
|
+
"indexed": false,
|
|
23398
|
+
"internalType": "uint256",
|
|
23399
|
+
"name": "jumpMultiplierPerBlock",
|
|
23400
|
+
"type": "uint256"
|
|
23401
|
+
},
|
|
23402
|
+
{
|
|
23403
|
+
"indexed": false,
|
|
23404
|
+
"internalType": "uint256",
|
|
23405
|
+
"name": "kink",
|
|
23406
|
+
"type": "uint256"
|
|
23407
|
+
}
|
|
23408
|
+
],
|
|
23409
|
+
"name": "NewInterestParams",
|
|
23410
|
+
"type": "event"
|
|
23411
|
+
},
|
|
23412
|
+
{
|
|
23413
|
+
"constant": true,
|
|
23414
|
+
"inputs": [],
|
|
23415
|
+
"name": "baseRatePerBlock",
|
|
23416
|
+
"outputs": [
|
|
23417
|
+
{
|
|
23418
|
+
"internalType": "uint256",
|
|
23419
|
+
"name": "",
|
|
23420
|
+
"type": "uint256"
|
|
23421
|
+
}
|
|
23422
|
+
],
|
|
23423
|
+
"payable": false,
|
|
23424
|
+
"stateMutability": "view",
|
|
23425
|
+
"type": "function"
|
|
23426
|
+
},
|
|
23427
|
+
{
|
|
23428
|
+
"constant": true,
|
|
23429
|
+
"inputs": [],
|
|
23430
|
+
"name": "blocksPerYear",
|
|
23431
|
+
"outputs": [
|
|
23432
|
+
{
|
|
23433
|
+
"internalType": "uint256",
|
|
23434
|
+
"name": "",
|
|
23435
|
+
"type": "uint256"
|
|
23436
|
+
}
|
|
23437
|
+
],
|
|
23438
|
+
"payable": false,
|
|
23439
|
+
"stateMutability": "view",
|
|
23440
|
+
"type": "function"
|
|
23441
|
+
},
|
|
23442
|
+
{
|
|
23443
|
+
"constant": true,
|
|
23444
|
+
"inputs": [
|
|
23445
|
+
{
|
|
23446
|
+
"internalType": "uint256",
|
|
23447
|
+
"name": "cash",
|
|
23448
|
+
"type": "uint256"
|
|
23449
|
+
},
|
|
23450
|
+
{
|
|
23451
|
+
"internalType": "uint256",
|
|
23452
|
+
"name": "borrows",
|
|
23453
|
+
"type": "uint256"
|
|
23454
|
+
},
|
|
23455
|
+
{
|
|
23456
|
+
"internalType": "uint256",
|
|
23457
|
+
"name": "reserves",
|
|
23458
|
+
"type": "uint256"
|
|
23459
|
+
}
|
|
23460
|
+
],
|
|
23461
|
+
"name": "getBorrowRate",
|
|
23462
|
+
"outputs": [
|
|
23463
|
+
{
|
|
23464
|
+
"internalType": "uint256",
|
|
23465
|
+
"name": "",
|
|
23466
|
+
"type": "uint256"
|
|
23467
|
+
}
|
|
23468
|
+
],
|
|
23469
|
+
"payable": false,
|
|
23470
|
+
"stateMutability": "view",
|
|
23471
|
+
"type": "function"
|
|
23472
|
+
},
|
|
23473
|
+
{
|
|
23474
|
+
"constant": true,
|
|
23475
|
+
"inputs": [
|
|
23476
|
+
{
|
|
23477
|
+
"internalType": "uint256",
|
|
23478
|
+
"name": "cash",
|
|
23479
|
+
"type": "uint256"
|
|
23480
|
+
},
|
|
23481
|
+
{
|
|
23482
|
+
"internalType": "uint256",
|
|
23483
|
+
"name": "borrows",
|
|
23484
|
+
"type": "uint256"
|
|
23485
|
+
},
|
|
23486
|
+
{
|
|
23487
|
+
"internalType": "uint256",
|
|
23488
|
+
"name": "reserves",
|
|
23489
|
+
"type": "uint256"
|
|
23490
|
+
},
|
|
23491
|
+
{
|
|
23492
|
+
"internalType": "uint256",
|
|
23493
|
+
"name": "reserveFactorMantissa",
|
|
23494
|
+
"type": "uint256"
|
|
23495
|
+
}
|
|
23496
|
+
],
|
|
23497
|
+
"name": "getSupplyRate",
|
|
23498
|
+
"outputs": [
|
|
23499
|
+
{
|
|
23500
|
+
"internalType": "uint256",
|
|
23501
|
+
"name": "",
|
|
23502
|
+
"type": "uint256"
|
|
23503
|
+
}
|
|
23504
|
+
],
|
|
23505
|
+
"payable": false,
|
|
23506
|
+
"stateMutability": "view",
|
|
23507
|
+
"type": "function"
|
|
23508
|
+
},
|
|
23509
|
+
{
|
|
23510
|
+
"constant": true,
|
|
23511
|
+
"inputs": [],
|
|
23512
|
+
"name": "isInterestRateModel",
|
|
23513
|
+
"outputs": [
|
|
23514
|
+
{
|
|
23515
|
+
"internalType": "bool",
|
|
23516
|
+
"name": "",
|
|
23517
|
+
"type": "bool"
|
|
23518
|
+
}
|
|
23519
|
+
],
|
|
23520
|
+
"payable": false,
|
|
23521
|
+
"stateMutability": "view",
|
|
23522
|
+
"type": "function"
|
|
23523
|
+
},
|
|
23524
|
+
{
|
|
23525
|
+
"constant": true,
|
|
23526
|
+
"inputs": [],
|
|
23527
|
+
"name": "jumpMultiplierPerBlock",
|
|
23528
|
+
"outputs": [
|
|
23529
|
+
{
|
|
23530
|
+
"internalType": "uint256",
|
|
23531
|
+
"name": "",
|
|
23532
|
+
"type": "uint256"
|
|
23533
|
+
}
|
|
23534
|
+
],
|
|
23535
|
+
"payable": false,
|
|
23536
|
+
"stateMutability": "view",
|
|
23537
|
+
"type": "function"
|
|
23538
|
+
},
|
|
23539
|
+
{
|
|
23540
|
+
"constant": true,
|
|
23541
|
+
"inputs": [],
|
|
23542
|
+
"name": "kink",
|
|
23543
|
+
"outputs": [
|
|
23544
|
+
{
|
|
23545
|
+
"internalType": "uint256",
|
|
23546
|
+
"name": "",
|
|
23547
|
+
"type": "uint256"
|
|
23548
|
+
}
|
|
23549
|
+
],
|
|
23550
|
+
"payable": false,
|
|
23551
|
+
"stateMutability": "view",
|
|
23552
|
+
"type": "function"
|
|
23553
|
+
},
|
|
23554
|
+
{
|
|
23555
|
+
"constant": true,
|
|
23556
|
+
"inputs": [],
|
|
23557
|
+
"name": "multiplierPerBlock",
|
|
23558
|
+
"outputs": [
|
|
23559
|
+
{
|
|
23560
|
+
"internalType": "uint256",
|
|
23561
|
+
"name": "",
|
|
23562
|
+
"type": "uint256"
|
|
23563
|
+
}
|
|
23564
|
+
],
|
|
23565
|
+
"payable": false,
|
|
23566
|
+
"stateMutability": "view",
|
|
23567
|
+
"type": "function"
|
|
23568
|
+
},
|
|
23569
|
+
{
|
|
23570
|
+
"constant": true,
|
|
23571
|
+
"inputs": [
|
|
23572
|
+
{
|
|
23573
|
+
"internalType": "uint256",
|
|
23574
|
+
"name": "cash",
|
|
23575
|
+
"type": "uint256"
|
|
23576
|
+
},
|
|
23577
|
+
{
|
|
23578
|
+
"internalType": "uint256",
|
|
23579
|
+
"name": "borrows",
|
|
23580
|
+
"type": "uint256"
|
|
23581
|
+
},
|
|
23582
|
+
{
|
|
23583
|
+
"internalType": "uint256",
|
|
23584
|
+
"name": "reserves",
|
|
23585
|
+
"type": "uint256"
|
|
23586
|
+
}
|
|
23587
|
+
],
|
|
23588
|
+
"name": "utilizationRate",
|
|
23589
|
+
"outputs": [
|
|
23590
|
+
{
|
|
23591
|
+
"internalType": "uint256",
|
|
23592
|
+
"name": "",
|
|
23593
|
+
"type": "uint256"
|
|
23594
|
+
}
|
|
23595
|
+
],
|
|
23596
|
+
"payable": false,
|
|
23597
|
+
"stateMutability": "pure",
|
|
23598
|
+
"type": "function"
|
|
23599
|
+
}
|
|
23600
|
+
]
|
|
23601
|
+
},
|
|
23346
23602
|
"JumpRateModel_base5000bps_slope3000bps_jump30000bps_kink6000bps_bpy10512000": {
|
|
23347
23603
|
"address": "0x91475A3f288841bce074Ec7edF27ec3fE58e18d1",
|
|
23348
23604
|
"abi": [
|
|
@@ -108,6 +108,7 @@
|
|
|
108
108
|
"JumpRateModel_base200bps_slope2000bps_jump30000bps_kink5000bps_bpy10512000": "0x2dE4739a9C68B02B54C0d8323752551d724b3cc2",
|
|
109
109
|
"JumpRateModel_base200bps_slope2000bps_jump30000bps_kink5000bps_bpy21024000": "0x1063A02E500Ae1448DDd6767ead97368FEeCafE7",
|
|
110
110
|
"JumpRateModel_base200bps_slope2000bps_jump30000bps_kink5000bps_bpy42048000": "0x6BBb4FAAE927Df5a299892217dFB354E5F5000A2",
|
|
111
|
+
"JumpRateModel_base25bps_slope367bps_jump20000bps_kink7500bps_bpy42048000": "0xE74FE49e07c8f0Cc4398a481206e2d835b88b8F4",
|
|
111
112
|
"JumpRateModel_base5000bps_slope3000bps_jump30000bps_kink6000bps_bpy10512000": "0x91475A3f288841bce074Ec7edF27ec3fE58e18d1",
|
|
112
113
|
"JumpRateModel_base5000bps_slope3000bps_jump30000bps_kink6000bps_bpy21024000": "0xF34AfA5B6a9F828da41f146321221B60977F20E0",
|
|
113
114
|
"JumpRateModel_base5000bps_slope3000bps_jump30000bps_kink6000bps_bpy42048000": "0x3DC78Fe78fd3084CAAd0DC881b4Eb98B6151A5f3",
|
|
@@ -48,7 +48,6 @@ const func = async function (hre) {
|
|
|
48
48
|
basemainnet: basemainnet_json_1.default.contracts.NormalTimelock.address,
|
|
49
49
|
unichainsepolia: unichainsepolia_json_1.default.contracts.NormalTimelock.address,
|
|
50
50
|
unichainmainnet: unichainmainnet_json_1.default.contracts.NormalTimelock.address,
|
|
51
|
-
berachainbepolia: "0xAb3DBA18664B96AD54459D06Ca8BD18C9146d5CE",
|
|
52
51
|
bscmainnet: await getTimelock(),
|
|
53
52
|
bsctestnet: await getTimelock(),
|
|
54
53
|
hardhat: deployer,
|
|
@@ -40,7 +40,6 @@ const func = async function (hre) {
|
|
|
40
40
|
basemainnet: basemainnet_json_1.default.contracts.NormalTimelock.address,
|
|
41
41
|
unichainsepolia: unichainsepolia_json_1.default.contracts.NormalTimelock.address,
|
|
42
42
|
unichainmainnet: unichainmainnet_json_1.default.contracts.NormalTimelock.address,
|
|
43
|
-
berachainbepolia: "0xAb3DBA18664B96AD54459D06Ca8BD18C9146d5CE",
|
|
44
43
|
hardhat: deployer,
|
|
45
44
|
};
|
|
46
45
|
const accessControlManager = await hardhat_1.ethers.getContract("AccessControlManager");
|
|
@@ -23343,6 +23343,262 @@
|
|
|
23343
23343
|
}
|
|
23344
23344
|
]
|
|
23345
23345
|
},
|
|
23346
|
+
"JumpRateModel_base25bps_slope367bps_jump20000bps_kink7500bps_bpy42048000": {
|
|
23347
|
+
"address": "0xE74FE49e07c8f0Cc4398a481206e2d835b88b8F4",
|
|
23348
|
+
"abi": [
|
|
23349
|
+
{
|
|
23350
|
+
"inputs": [
|
|
23351
|
+
{
|
|
23352
|
+
"internalType": "uint256",
|
|
23353
|
+
"name": "baseRatePerYear",
|
|
23354
|
+
"type": "uint256"
|
|
23355
|
+
},
|
|
23356
|
+
{
|
|
23357
|
+
"internalType": "uint256",
|
|
23358
|
+
"name": "multiplierPerYear",
|
|
23359
|
+
"type": "uint256"
|
|
23360
|
+
},
|
|
23361
|
+
{
|
|
23362
|
+
"internalType": "uint256",
|
|
23363
|
+
"name": "jumpMultiplierPerYear",
|
|
23364
|
+
"type": "uint256"
|
|
23365
|
+
},
|
|
23366
|
+
{
|
|
23367
|
+
"internalType": "uint256",
|
|
23368
|
+
"name": "kink_",
|
|
23369
|
+
"type": "uint256"
|
|
23370
|
+
},
|
|
23371
|
+
{
|
|
23372
|
+
"internalType": "uint256",
|
|
23373
|
+
"name": "blocksPerYear_",
|
|
23374
|
+
"type": "uint256"
|
|
23375
|
+
}
|
|
23376
|
+
],
|
|
23377
|
+
"payable": false,
|
|
23378
|
+
"stateMutability": "nonpayable",
|
|
23379
|
+
"type": "constructor"
|
|
23380
|
+
},
|
|
23381
|
+
{
|
|
23382
|
+
"anonymous": false,
|
|
23383
|
+
"inputs": [
|
|
23384
|
+
{
|
|
23385
|
+
"indexed": false,
|
|
23386
|
+
"internalType": "uint256",
|
|
23387
|
+
"name": "baseRatePerBlock",
|
|
23388
|
+
"type": "uint256"
|
|
23389
|
+
},
|
|
23390
|
+
{
|
|
23391
|
+
"indexed": false,
|
|
23392
|
+
"internalType": "uint256",
|
|
23393
|
+
"name": "multiplierPerBlock",
|
|
23394
|
+
"type": "uint256"
|
|
23395
|
+
},
|
|
23396
|
+
{
|
|
23397
|
+
"indexed": false,
|
|
23398
|
+
"internalType": "uint256",
|
|
23399
|
+
"name": "jumpMultiplierPerBlock",
|
|
23400
|
+
"type": "uint256"
|
|
23401
|
+
},
|
|
23402
|
+
{
|
|
23403
|
+
"indexed": false,
|
|
23404
|
+
"internalType": "uint256",
|
|
23405
|
+
"name": "kink",
|
|
23406
|
+
"type": "uint256"
|
|
23407
|
+
}
|
|
23408
|
+
],
|
|
23409
|
+
"name": "NewInterestParams",
|
|
23410
|
+
"type": "event"
|
|
23411
|
+
},
|
|
23412
|
+
{
|
|
23413
|
+
"constant": true,
|
|
23414
|
+
"inputs": [],
|
|
23415
|
+
"name": "baseRatePerBlock",
|
|
23416
|
+
"outputs": [
|
|
23417
|
+
{
|
|
23418
|
+
"internalType": "uint256",
|
|
23419
|
+
"name": "",
|
|
23420
|
+
"type": "uint256"
|
|
23421
|
+
}
|
|
23422
|
+
],
|
|
23423
|
+
"payable": false,
|
|
23424
|
+
"stateMutability": "view",
|
|
23425
|
+
"type": "function"
|
|
23426
|
+
},
|
|
23427
|
+
{
|
|
23428
|
+
"constant": true,
|
|
23429
|
+
"inputs": [],
|
|
23430
|
+
"name": "blocksPerYear",
|
|
23431
|
+
"outputs": [
|
|
23432
|
+
{
|
|
23433
|
+
"internalType": "uint256",
|
|
23434
|
+
"name": "",
|
|
23435
|
+
"type": "uint256"
|
|
23436
|
+
}
|
|
23437
|
+
],
|
|
23438
|
+
"payable": false,
|
|
23439
|
+
"stateMutability": "view",
|
|
23440
|
+
"type": "function"
|
|
23441
|
+
},
|
|
23442
|
+
{
|
|
23443
|
+
"constant": true,
|
|
23444
|
+
"inputs": [
|
|
23445
|
+
{
|
|
23446
|
+
"internalType": "uint256",
|
|
23447
|
+
"name": "cash",
|
|
23448
|
+
"type": "uint256"
|
|
23449
|
+
},
|
|
23450
|
+
{
|
|
23451
|
+
"internalType": "uint256",
|
|
23452
|
+
"name": "borrows",
|
|
23453
|
+
"type": "uint256"
|
|
23454
|
+
},
|
|
23455
|
+
{
|
|
23456
|
+
"internalType": "uint256",
|
|
23457
|
+
"name": "reserves",
|
|
23458
|
+
"type": "uint256"
|
|
23459
|
+
}
|
|
23460
|
+
],
|
|
23461
|
+
"name": "getBorrowRate",
|
|
23462
|
+
"outputs": [
|
|
23463
|
+
{
|
|
23464
|
+
"internalType": "uint256",
|
|
23465
|
+
"name": "",
|
|
23466
|
+
"type": "uint256"
|
|
23467
|
+
}
|
|
23468
|
+
],
|
|
23469
|
+
"payable": false,
|
|
23470
|
+
"stateMutability": "view",
|
|
23471
|
+
"type": "function"
|
|
23472
|
+
},
|
|
23473
|
+
{
|
|
23474
|
+
"constant": true,
|
|
23475
|
+
"inputs": [
|
|
23476
|
+
{
|
|
23477
|
+
"internalType": "uint256",
|
|
23478
|
+
"name": "cash",
|
|
23479
|
+
"type": "uint256"
|
|
23480
|
+
},
|
|
23481
|
+
{
|
|
23482
|
+
"internalType": "uint256",
|
|
23483
|
+
"name": "borrows",
|
|
23484
|
+
"type": "uint256"
|
|
23485
|
+
},
|
|
23486
|
+
{
|
|
23487
|
+
"internalType": "uint256",
|
|
23488
|
+
"name": "reserves",
|
|
23489
|
+
"type": "uint256"
|
|
23490
|
+
},
|
|
23491
|
+
{
|
|
23492
|
+
"internalType": "uint256",
|
|
23493
|
+
"name": "reserveFactorMantissa",
|
|
23494
|
+
"type": "uint256"
|
|
23495
|
+
}
|
|
23496
|
+
],
|
|
23497
|
+
"name": "getSupplyRate",
|
|
23498
|
+
"outputs": [
|
|
23499
|
+
{
|
|
23500
|
+
"internalType": "uint256",
|
|
23501
|
+
"name": "",
|
|
23502
|
+
"type": "uint256"
|
|
23503
|
+
}
|
|
23504
|
+
],
|
|
23505
|
+
"payable": false,
|
|
23506
|
+
"stateMutability": "view",
|
|
23507
|
+
"type": "function"
|
|
23508
|
+
},
|
|
23509
|
+
{
|
|
23510
|
+
"constant": true,
|
|
23511
|
+
"inputs": [],
|
|
23512
|
+
"name": "isInterestRateModel",
|
|
23513
|
+
"outputs": [
|
|
23514
|
+
{
|
|
23515
|
+
"internalType": "bool",
|
|
23516
|
+
"name": "",
|
|
23517
|
+
"type": "bool"
|
|
23518
|
+
}
|
|
23519
|
+
],
|
|
23520
|
+
"payable": false,
|
|
23521
|
+
"stateMutability": "view",
|
|
23522
|
+
"type": "function"
|
|
23523
|
+
},
|
|
23524
|
+
{
|
|
23525
|
+
"constant": true,
|
|
23526
|
+
"inputs": [],
|
|
23527
|
+
"name": "jumpMultiplierPerBlock",
|
|
23528
|
+
"outputs": [
|
|
23529
|
+
{
|
|
23530
|
+
"internalType": "uint256",
|
|
23531
|
+
"name": "",
|
|
23532
|
+
"type": "uint256"
|
|
23533
|
+
}
|
|
23534
|
+
],
|
|
23535
|
+
"payable": false,
|
|
23536
|
+
"stateMutability": "view",
|
|
23537
|
+
"type": "function"
|
|
23538
|
+
},
|
|
23539
|
+
{
|
|
23540
|
+
"constant": true,
|
|
23541
|
+
"inputs": [],
|
|
23542
|
+
"name": "kink",
|
|
23543
|
+
"outputs": [
|
|
23544
|
+
{
|
|
23545
|
+
"internalType": "uint256",
|
|
23546
|
+
"name": "",
|
|
23547
|
+
"type": "uint256"
|
|
23548
|
+
}
|
|
23549
|
+
],
|
|
23550
|
+
"payable": false,
|
|
23551
|
+
"stateMutability": "view",
|
|
23552
|
+
"type": "function"
|
|
23553
|
+
},
|
|
23554
|
+
{
|
|
23555
|
+
"constant": true,
|
|
23556
|
+
"inputs": [],
|
|
23557
|
+
"name": "multiplierPerBlock",
|
|
23558
|
+
"outputs": [
|
|
23559
|
+
{
|
|
23560
|
+
"internalType": "uint256",
|
|
23561
|
+
"name": "",
|
|
23562
|
+
"type": "uint256"
|
|
23563
|
+
}
|
|
23564
|
+
],
|
|
23565
|
+
"payable": false,
|
|
23566
|
+
"stateMutability": "view",
|
|
23567
|
+
"type": "function"
|
|
23568
|
+
},
|
|
23569
|
+
{
|
|
23570
|
+
"constant": true,
|
|
23571
|
+
"inputs": [
|
|
23572
|
+
{
|
|
23573
|
+
"internalType": "uint256",
|
|
23574
|
+
"name": "cash",
|
|
23575
|
+
"type": "uint256"
|
|
23576
|
+
},
|
|
23577
|
+
{
|
|
23578
|
+
"internalType": "uint256",
|
|
23579
|
+
"name": "borrows",
|
|
23580
|
+
"type": "uint256"
|
|
23581
|
+
},
|
|
23582
|
+
{
|
|
23583
|
+
"internalType": "uint256",
|
|
23584
|
+
"name": "reserves",
|
|
23585
|
+
"type": "uint256"
|
|
23586
|
+
}
|
|
23587
|
+
],
|
|
23588
|
+
"name": "utilizationRate",
|
|
23589
|
+
"outputs": [
|
|
23590
|
+
{
|
|
23591
|
+
"internalType": "uint256",
|
|
23592
|
+
"name": "",
|
|
23593
|
+
"type": "uint256"
|
|
23594
|
+
}
|
|
23595
|
+
],
|
|
23596
|
+
"payable": false,
|
|
23597
|
+
"stateMutability": "pure",
|
|
23598
|
+
"type": "function"
|
|
23599
|
+
}
|
|
23600
|
+
]
|
|
23601
|
+
},
|
|
23346
23602
|
"JumpRateModel_base5000bps_slope3000bps_jump30000bps_kink6000bps_bpy10512000": {
|
|
23347
23603
|
"address": "0x91475A3f288841bce074Ec7edF27ec3fE58e18d1",
|
|
23348
23604
|
"abi": [
|
package/dist/hardhat.config.js
CHANGED
|
@@ -251,12 +251,6 @@ const config = {
|
|
|
251
251
|
live: true,
|
|
252
252
|
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
|
|
253
253
|
},
|
|
254
|
-
berachainbepolia: {
|
|
255
|
-
url: process.env.ARCHIVE_NODE_berachainbepolia || "https://bepolia.rpc.berachain.com",
|
|
256
|
-
chainId: 80069,
|
|
257
|
-
live: true,
|
|
258
|
-
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
|
|
259
|
-
},
|
|
260
254
|
},
|
|
261
255
|
etherscan: {
|
|
262
256
|
apiKey: {
|
|
@@ -274,7 +268,6 @@ const config = {
|
|
|
274
268
|
basemainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
275
269
|
unichainsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
276
270
|
unichainmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
277
|
-
berachainbepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
278
271
|
},
|
|
279
272
|
customChains: [
|
|
280
273
|
{
|
|
@@ -389,14 +382,6 @@ const config = {
|
|
|
389
382
|
browserURL: "https://uniscan.xyz/",
|
|
390
383
|
},
|
|
391
384
|
},
|
|
392
|
-
{
|
|
393
|
-
network: "berachainbepolia",
|
|
394
|
-
chainId: 80069,
|
|
395
|
-
urls: {
|
|
396
|
-
apiURL: "https://api.routescan.io/v2/network/testnet/evm/80069/etherscan",
|
|
397
|
-
browserURL: "https://bepolia.beratrail.io",
|
|
398
|
-
},
|
|
399
|
-
},
|
|
400
385
|
],
|
|
401
386
|
},
|
|
402
387
|
paths: {
|
package/dist/helpers/chains.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const knownChains: readonly ["hardhat", "bsctestnet", "bscmainnet", "sepolia", "ethereum", "opbnbtestnet", "opbnbmainnet", "arbitrumsepolia", "arbitrumone", "opsepolia", "opmainnet", "basesepolia", "basemainnet", "unichainsepolia", "unichainmainnet", "
|
|
1
|
+
declare const knownChains: readonly ["hardhat", "bsctestnet", "bscmainnet", "sepolia", "ethereum", "opbnbtestnet", "opbnbmainnet", "arbitrumsepolia", "arbitrumone", "opsepolia", "opmainnet", "basesepolia", "basemainnet", "unichainsepolia", "unichainmainnet", "zksyncsepolia", "zksyncmainnet"];
|
|
2
2
|
export type Chain = {
|
|
3
3
|
[k in keyof typeof knownChains]: (typeof knownChains)[k];
|
|
4
4
|
}[number];
|
|
@@ -19,7 +19,6 @@ export declare const blocksPerYear: {
|
|
|
19
19
|
readonly basemainnet: "time-based";
|
|
20
20
|
readonly unichainsepolia: "time-based";
|
|
21
21
|
readonly unichainmainnet: "time-based";
|
|
22
|
-
readonly berachainbepolia: "time-based";
|
|
23
22
|
readonly zksyncsepolia: "time-based";
|
|
24
23
|
readonly zksyncmainnet: "time-based";
|
|
25
24
|
};
|
|
@@ -29,9 +28,9 @@ export type TimeBasedChain = keyof {
|
|
|
29
28
|
export type BlockBasedChain = keyof {
|
|
30
29
|
[k in Chain as (typeof blocksPerYear)[k] extends number ? k : never]: void;
|
|
31
30
|
};
|
|
32
|
-
export declare const isKnownChain: (networkName: string) => networkName is "hardhat" | "bsctestnet" | "bscmainnet" | "sepolia" | "ethereum" | "opbnbtestnet" | "opbnbmainnet" | "arbitrumsepolia" | "arbitrumone" | "opsepolia" | "opmainnet" | "basesepolia" | "basemainnet" | "unichainsepolia" | "unichainmainnet" | "
|
|
31
|
+
export declare const isKnownChain: (networkName: string) => networkName is "hardhat" | "bsctestnet" | "bscmainnet" | "sepolia" | "ethereum" | "opbnbtestnet" | "opbnbmainnet" | "arbitrumsepolia" | "arbitrumone" | "opsepolia" | "opmainnet" | "basesepolia" | "basemainnet" | "unichainsepolia" | "unichainmainnet" | "zksyncsepolia" | "zksyncmainnet";
|
|
33
32
|
export declare const assertKnownChain: (networkName: string) => Chain;
|
|
34
|
-
export declare const isTimeBasedChain: (networkName: string) => networkName is "arbitrumsepolia" | "arbitrumone" | "opsepolia" | "opmainnet" | "basesepolia" | "basemainnet" | "unichainsepolia" | "unichainmainnet" | "
|
|
33
|
+
export declare const isTimeBasedChain: (networkName: string) => networkName is "arbitrumsepolia" | "arbitrumone" | "opsepolia" | "opmainnet" | "basesepolia" | "basemainnet" | "unichainsepolia" | "unichainmainnet" | "zksyncsepolia" | "zksyncmainnet";
|
|
35
34
|
export declare const assertTimeBasedChain: (networkName: string) => TimeBasedChain;
|
|
36
35
|
export declare const isBlockBasedChain: (networkName: string) => networkName is "hardhat" | "bsctestnet" | "bscmainnet" | "sepolia" | "ethereum" | "opbnbtestnet" | "opbnbmainnet";
|
|
37
36
|
export declare const assertBlockBasedChain: (networkName: string) => BlockBasedChain;
|
package/dist/helpers/chains.js
CHANGED
|
@@ -17,7 +17,6 @@ const knownChains = [
|
|
|
17
17
|
"basemainnet",
|
|
18
18
|
"unichainsepolia",
|
|
19
19
|
"unichainmainnet",
|
|
20
|
-
"berachainbepolia",
|
|
21
20
|
"zksyncsepolia",
|
|
22
21
|
"zksyncmainnet",
|
|
23
22
|
];
|
|
@@ -37,7 +36,6 @@ exports.blocksPerYear = {
|
|
|
37
36
|
basemainnet: "time-based",
|
|
38
37
|
unichainsepolia: "time-based",
|
|
39
38
|
unichainmainnet: "time-based",
|
|
40
|
-
berachainbepolia: "time-based",
|
|
41
39
|
zksyncsepolia: "time-based",
|
|
42
40
|
zksyncmainnet: "time-based",
|
|
43
41
|
};
|
|
@@ -111,8 +111,8 @@ declare const _default: readonly [{
|
|
|
111
111
|
readonly asset: "BTCB";
|
|
112
112
|
readonly interestRateModel: {
|
|
113
113
|
readonly model: "jump";
|
|
114
|
-
readonly baseRatePerYear: "0";
|
|
115
|
-
readonly multiplierPerYear: "0.
|
|
114
|
+
readonly baseRatePerYear: "0.0025";
|
|
115
|
+
readonly multiplierPerYear: "0.0367";
|
|
116
116
|
readonly kink: "0.75";
|
|
117
117
|
readonly jumpMultiplierPerYear: "2";
|
|
118
118
|
};
|
|
@@ -120,8 +120,8 @@ exports.default = [
|
|
|
120
120
|
asset: "BTCB",
|
|
121
121
|
interestRateModel: {
|
|
122
122
|
model: "jump",
|
|
123
|
-
baseRatePerYear: "0",
|
|
124
|
-
multiplierPerYear: "0.
|
|
123
|
+
baseRatePerYear: "0.0025",
|
|
124
|
+
multiplierPerYear: "0.0367",
|
|
125
125
|
kink: "0.75",
|
|
126
126
|
jumpMultiplierPerYear: "2",
|
|
127
127
|
},
|
|
@@ -116,7 +116,6 @@ export declare const markets: {
|
|
|
116
116
|
readonly basemainnet: readonly [];
|
|
117
117
|
readonly unichainsepolia: readonly [];
|
|
118
118
|
readonly unichainmainnet: readonly [];
|
|
119
|
-
readonly berachainbepolia: readonly [];
|
|
120
119
|
readonly zksyncsepolia: readonly [];
|
|
121
120
|
readonly zksyncmainnet: readonly [];
|
|
122
121
|
};
|