@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.
- package/README.md +11 -1
- package/deploy/002-interest-rate-model.ts +57 -0
- package/deployments/bscmainnet/JumpRateModel_base0bps_slope1750bps_jump25000bps_kink8000bps.json +380 -0
- package/deployments/bscmainnet/TwoKinks_base0bps_slope1500bps_kink8000bps_slope29000bps_base20bps_kink29000bps_jump30000bps.json +436 -0
- package/deployments/bscmainnet.json +542 -0
- package/deployments/bscmainnet_addresses.json +2 -0
- package/deployments/bsctestnet/vAAVE.json +3326 -0
- package/deployments/bsctestnet/vADA.json +3244 -0
- package/deployments/bsctestnet/{vBTC.json → vBTCB.json} +55 -15
- package/deployments/bsctestnet/vBUSD.json +55 -15
- package/deployments/bsctestnet/vCAKE.json +1493 -0
- package/deployments/bsctestnet/vDOGE.json +3269 -0
- package/deployments/bsctestnet/vETH.json +55 -15
- package/deployments/bsctestnet/vFDUSD.json +3 -15
- package/deployments/bsctestnet/vLTC.json +55 -15
- package/deployments/bsctestnet/vMATIC.json +1550 -0
- package/deployments/bsctestnet/vSXP.json +55 -15
- package/deployments/bsctestnet/vSolvBTC.json +1776 -697
- package/deployments/bsctestnet/vTRX.json +56 -16
- package/deployments/bsctestnet/vTRXOLD.json +3326 -0
- package/deployments/bsctestnet/vTUSD.json +55 -15
- package/deployments/bsctestnet/vTUSDOLD.json +3326 -0
- package/deployments/bsctestnet/vTWT.json +1776 -697
- package/deployments/bsctestnet/vUNI.json +3344 -0
- package/deployments/bsctestnet/vUSDC.json +55 -15
- package/deployments/bsctestnet/vUSDT.json +55 -15
- package/deployments/bsctestnet/vWBETH.json +269 -5
- package/deployments/bsctestnet/vXRP.json +55 -15
- package/deployments/bsctestnet/vXVS.json +55 -15
- package/deployments/bsctestnet.json +30079 -2973
- package/deployments/bsctestnet_addresses.json +10 -2
- package/dist/deploy/002-interest-rate-model.js +51 -0
- package/dist/deployments/bscmainnet.json +542 -0
- package/dist/deployments/bsctestnet.json +30079 -2973
- package/dist/hardhat.config.js +24 -3
- package/dist/type-extensions.d.ts +6 -0
- package/dist/type-extensions.js +3 -0
- package/package.json +1 -1
|
@@ -85,17 +85,25 @@
|
|
|
85
85
|
"XVSVestingProxy_Implementation": "0x9667b6e438232925525f26cec0acc3a39b9980c8",
|
|
86
86
|
"XVSVestingProxy_Proxy": "0xcfa3a6bc934EcA22fa39e854c823cD3dE79D9BC8",
|
|
87
87
|
"pancakeFactory": "0x182859893230dC89b114d6e2D547BFFE30474a21",
|
|
88
|
+
"vAAVE": "0x714db6c38A17883964B68a07d56cE331501d9eb6",
|
|
89
|
+
"vADA": "0x37C28DE42bA3d22217995D146FC684B2326Ede64",
|
|
88
90
|
"vBNB": "0x2E7222e51c0f6e98610A1543Aa3836E092CDe62c",
|
|
89
|
-
"
|
|
91
|
+
"vBTCB": "0xb6e9322C49FD75a367Fcb17B0Fcd62C5070EbCBe",
|
|
90
92
|
"vBUSD": "0x08e0A5575De71037aE36AbfAfb516595fE68e5e4",
|
|
93
|
+
"vCAKE": "0xeDaC03D29ff74b5fDc0CC936F6288312e1459BC6",
|
|
94
|
+
"vDOGE": "0xF912d3001CAf6DC4ADD366A62Cc9115B4303c9A9",
|
|
91
95
|
"vETH": "0x162D005F0Fff510E54958Cfc5CF32A3180A84aab",
|
|
92
96
|
"vFDUSD": "0xF06e662a00796c122AaAE935EC4F0Be3F74f5636",
|
|
93
97
|
"vLTC": "0xAfc13BC065ABeE838540823431055D2ea52eBA52",
|
|
98
|
+
"vMATIC": "0x3619bdDc61189F33365CC572DF3a68FB3b316516",
|
|
94
99
|
"vSXP": "0x74469281310195A04840Daf6EdF576F559a3dE80",
|
|
95
100
|
"vSolvBTC": "0xA38110ae4451A86ab754695057d5B5a9BEAd0387",
|
|
96
|
-
"vTRX": "
|
|
101
|
+
"vTRX": "0x6AF3Fdb3282c5bb6926269Db10837fa8Aec67C04",
|
|
102
|
+
"vTRXOLD": "0x369Fea97f6fB7510755DCA389088d9E2e2819278",
|
|
97
103
|
"vTUSD": "0xEFAACF73CE2D38ED40991f29E72B12C74bd4cf23",
|
|
104
|
+
"vTUSDOLD": "0x3A00d9B02781f47d033BAd62edc55fBF8D083Fb0",
|
|
98
105
|
"vTWT": "0x95DaED37fdD3F557b3A5cCEb7D50Be65b36721DF",
|
|
106
|
+
"vUNI": "0x171B468b52d7027F12cEF90cd065d6776a25E24e",
|
|
99
107
|
"vUSDC": "0xD5C4C2e2facBEB59D0216D0595d63FcDc6F9A1a7",
|
|
100
108
|
"vUSDT": "0xb7526572FFE56AB9D7489838Bf2E18e3323b441A",
|
|
101
109
|
"vWBETH": "0x35566ED3AF9E537Be487C98b1811cDf95ad0C32b",
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const ethers_1 = require("ethers");
|
|
3
4
|
const utils_1 = require("ethers/lib/utils");
|
|
5
|
+
const mantissaToBps = (num) => {
|
|
6
|
+
return ethers_1.BigNumber.from(num).div((0, utils_1.parseUnits)("1", 14)).toString();
|
|
7
|
+
};
|
|
4
8
|
const func = async function (hre) {
|
|
5
9
|
const { deployments, getNamedAccounts, network } = hre;
|
|
6
10
|
const { deploy } = deployments;
|
|
@@ -29,6 +33,53 @@ const func = async function (hre) {
|
|
|
29
33
|
autoMine: true,
|
|
30
34
|
args: [0, (0, utils_1.parseUnits)("0.03", 18), (0, utils_1.parseUnits)("4.5", 18), (0, utils_1.parseUnits)("0.9", 18)],
|
|
31
35
|
});
|
|
36
|
+
let baseRatePerYear = (0, utils_1.parseUnits)("0", 18);
|
|
37
|
+
let multiplierPerYear = (0, utils_1.parseUnits)("0.175", 18);
|
|
38
|
+
let jumpMultiplierPerYear = (0, utils_1.parseUnits)("2.5", 18);
|
|
39
|
+
let kink = (0, utils_1.parseUnits)("0.8", 18);
|
|
40
|
+
const [b, m, j, k] = [baseRatePerYear, multiplierPerYear, jumpMultiplierPerYear, kink].map(mantissaToBps);
|
|
41
|
+
let rateModelName = `JumpRateModel_base${b}bps_slope${m}bps_jump${j}bps_kink${k}bps`;
|
|
42
|
+
await deploy(rateModelName, {
|
|
43
|
+
contract: "JumpRateModel",
|
|
44
|
+
from: deployer,
|
|
45
|
+
log: true,
|
|
46
|
+
autoMine: true,
|
|
47
|
+
args: [baseRatePerYear, multiplierPerYear, jumpMultiplierPerYear, kink],
|
|
48
|
+
skipIfAlreadyDeployed: true,
|
|
49
|
+
});
|
|
50
|
+
baseRatePerYear = (0, utils_1.parseUnits)("0", 18);
|
|
51
|
+
multiplierPerYear = (0, utils_1.parseUnits)("0.15", 18);
|
|
52
|
+
jumpMultiplierPerYear = (0, utils_1.parseUnits)("3", 18);
|
|
53
|
+
kink = (0, utils_1.parseUnits)("0.8", 18);
|
|
54
|
+
const baseRatePerYear2 = (0, utils_1.parseUnits)("0", 18);
|
|
55
|
+
const multiplierPerYear2 = (0, utils_1.parseUnits)("0.9", 18);
|
|
56
|
+
const kink2_ = (0, utils_1.parseUnits)("0.9", 18);
|
|
57
|
+
const [b1, m1, k1, m2, b2, k2, j2] = [
|
|
58
|
+
baseRatePerYear,
|
|
59
|
+
multiplierPerYear,
|
|
60
|
+
kink,
|
|
61
|
+
multiplierPerYear2,
|
|
62
|
+
baseRatePerYear2,
|
|
63
|
+
kink2_,
|
|
64
|
+
jumpMultiplierPerYear,
|
|
65
|
+
].map(mantissaToBps);
|
|
66
|
+
rateModelName = `TwoKinks_base${b1}bps_slope${m1}bps_kink${k1}bps_slope2${m2}bps_base2${b2}bps_kink2${k2}bps_jump${j2}bps`;
|
|
67
|
+
await deploy(rateModelName, {
|
|
68
|
+
contract: "TwoKinksInterestRateModel",
|
|
69
|
+
from: deployer,
|
|
70
|
+
log: true,
|
|
71
|
+
autoMine: true,
|
|
72
|
+
args: [
|
|
73
|
+
baseRatePerYear,
|
|
74
|
+
multiplierPerYear,
|
|
75
|
+
kink,
|
|
76
|
+
multiplierPerYear2,
|
|
77
|
+
baseRatePerYear2,
|
|
78
|
+
kink2_,
|
|
79
|
+
jumpMultiplierPerYear,
|
|
80
|
+
],
|
|
81
|
+
skipIfAlreadyDeployed: true,
|
|
82
|
+
});
|
|
32
83
|
}
|
|
33
84
|
if (network.name === "bscmainnet" || network.name === "bsctestnet") {
|
|
34
85
|
await deploy("InterestRateModelVBNB", {
|
|
@@ -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": [
|