@venusprotocol/venus-protocol 9.4.0-dev.1 → 9.4.0-dev.3
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/002-interest-rate-model.ts +10 -0
- package/deploy/005-deploy-VTreasuryV8.ts +1 -0
- package/deployments/basesepolia/.chainId +1 -0
- package/deployments/basesepolia/VTreasuryV8.json +329 -0
- package/deployments/basesepolia/solcInputs/fd1cb03a4a5faafbc2c9f8079ca92876.json +283 -0
- package/deployments/basesepolia.json +200 -0
- package/deployments/basesepolia_addresses.json +7 -0
- package/deployments/bscmainnet/InterestRateModelVETH.json +380 -0
- package/deployments/bscmainnet.json +251 -0
- package/deployments/bscmainnet_addresses.json +1 -0
- package/dist/deploy/002-interest-rate-model.js +9 -0
- package/dist/deploy/005-deploy-VTreasuryV8.js +1 -0
- package/dist/deployments/bscmainnet.json +251 -0
- package/dist/hardhat.config.js +15 -0
- package/package.json +1 -1
|
@@ -6788,6 +6788,257 @@
|
|
|
6788
6788
|
}
|
|
6789
6789
|
]
|
|
6790
6790
|
},
|
|
6791
|
+
"InterestRateModelVETH": {
|
|
6792
|
+
"address": "0x3aa125788FC6b9F801772baEa887aA40328015e9",
|
|
6793
|
+
"abi": [
|
|
6794
|
+
{
|
|
6795
|
+
"inputs": [
|
|
6796
|
+
{
|
|
6797
|
+
"internalType": "uint256",
|
|
6798
|
+
"name": "baseRatePerYear",
|
|
6799
|
+
"type": "uint256"
|
|
6800
|
+
},
|
|
6801
|
+
{
|
|
6802
|
+
"internalType": "uint256",
|
|
6803
|
+
"name": "multiplierPerYear",
|
|
6804
|
+
"type": "uint256"
|
|
6805
|
+
},
|
|
6806
|
+
{
|
|
6807
|
+
"internalType": "uint256",
|
|
6808
|
+
"name": "jumpMultiplierPerYear",
|
|
6809
|
+
"type": "uint256"
|
|
6810
|
+
},
|
|
6811
|
+
{
|
|
6812
|
+
"internalType": "uint256",
|
|
6813
|
+
"name": "kink_",
|
|
6814
|
+
"type": "uint256"
|
|
6815
|
+
}
|
|
6816
|
+
],
|
|
6817
|
+
"payable": false,
|
|
6818
|
+
"stateMutability": "nonpayable",
|
|
6819
|
+
"type": "constructor"
|
|
6820
|
+
},
|
|
6821
|
+
{
|
|
6822
|
+
"anonymous": false,
|
|
6823
|
+
"inputs": [
|
|
6824
|
+
{
|
|
6825
|
+
"indexed": false,
|
|
6826
|
+
"internalType": "uint256",
|
|
6827
|
+
"name": "baseRatePerBlock",
|
|
6828
|
+
"type": "uint256"
|
|
6829
|
+
},
|
|
6830
|
+
{
|
|
6831
|
+
"indexed": false,
|
|
6832
|
+
"internalType": "uint256",
|
|
6833
|
+
"name": "multiplierPerBlock",
|
|
6834
|
+
"type": "uint256"
|
|
6835
|
+
},
|
|
6836
|
+
{
|
|
6837
|
+
"indexed": false,
|
|
6838
|
+
"internalType": "uint256",
|
|
6839
|
+
"name": "jumpMultiplierPerBlock",
|
|
6840
|
+
"type": "uint256"
|
|
6841
|
+
},
|
|
6842
|
+
{
|
|
6843
|
+
"indexed": false,
|
|
6844
|
+
"internalType": "uint256",
|
|
6845
|
+
"name": "kink",
|
|
6846
|
+
"type": "uint256"
|
|
6847
|
+
}
|
|
6848
|
+
],
|
|
6849
|
+
"name": "NewInterestParams",
|
|
6850
|
+
"type": "event"
|
|
6851
|
+
},
|
|
6852
|
+
{
|
|
6853
|
+
"constant": true,
|
|
6854
|
+
"inputs": [],
|
|
6855
|
+
"name": "baseRatePerBlock",
|
|
6856
|
+
"outputs": [
|
|
6857
|
+
{
|
|
6858
|
+
"internalType": "uint256",
|
|
6859
|
+
"name": "",
|
|
6860
|
+
"type": "uint256"
|
|
6861
|
+
}
|
|
6862
|
+
],
|
|
6863
|
+
"payable": false,
|
|
6864
|
+
"stateMutability": "view",
|
|
6865
|
+
"type": "function"
|
|
6866
|
+
},
|
|
6867
|
+
{
|
|
6868
|
+
"constant": true,
|
|
6869
|
+
"inputs": [],
|
|
6870
|
+
"name": "blocksPerYear",
|
|
6871
|
+
"outputs": [
|
|
6872
|
+
{
|
|
6873
|
+
"internalType": "uint256",
|
|
6874
|
+
"name": "",
|
|
6875
|
+
"type": "uint256"
|
|
6876
|
+
}
|
|
6877
|
+
],
|
|
6878
|
+
"payable": false,
|
|
6879
|
+
"stateMutability": "view",
|
|
6880
|
+
"type": "function"
|
|
6881
|
+
},
|
|
6882
|
+
{
|
|
6883
|
+
"constant": true,
|
|
6884
|
+
"inputs": [
|
|
6885
|
+
{
|
|
6886
|
+
"internalType": "uint256",
|
|
6887
|
+
"name": "cash",
|
|
6888
|
+
"type": "uint256"
|
|
6889
|
+
},
|
|
6890
|
+
{
|
|
6891
|
+
"internalType": "uint256",
|
|
6892
|
+
"name": "borrows",
|
|
6893
|
+
"type": "uint256"
|
|
6894
|
+
},
|
|
6895
|
+
{
|
|
6896
|
+
"internalType": "uint256",
|
|
6897
|
+
"name": "reserves",
|
|
6898
|
+
"type": "uint256"
|
|
6899
|
+
}
|
|
6900
|
+
],
|
|
6901
|
+
"name": "getBorrowRate",
|
|
6902
|
+
"outputs": [
|
|
6903
|
+
{
|
|
6904
|
+
"internalType": "uint256",
|
|
6905
|
+
"name": "",
|
|
6906
|
+
"type": "uint256"
|
|
6907
|
+
}
|
|
6908
|
+
],
|
|
6909
|
+
"payable": false,
|
|
6910
|
+
"stateMutability": "view",
|
|
6911
|
+
"type": "function"
|
|
6912
|
+
},
|
|
6913
|
+
{
|
|
6914
|
+
"constant": true,
|
|
6915
|
+
"inputs": [
|
|
6916
|
+
{
|
|
6917
|
+
"internalType": "uint256",
|
|
6918
|
+
"name": "cash",
|
|
6919
|
+
"type": "uint256"
|
|
6920
|
+
},
|
|
6921
|
+
{
|
|
6922
|
+
"internalType": "uint256",
|
|
6923
|
+
"name": "borrows",
|
|
6924
|
+
"type": "uint256"
|
|
6925
|
+
},
|
|
6926
|
+
{
|
|
6927
|
+
"internalType": "uint256",
|
|
6928
|
+
"name": "reserves",
|
|
6929
|
+
"type": "uint256"
|
|
6930
|
+
},
|
|
6931
|
+
{
|
|
6932
|
+
"internalType": "uint256",
|
|
6933
|
+
"name": "reserveFactorMantissa",
|
|
6934
|
+
"type": "uint256"
|
|
6935
|
+
}
|
|
6936
|
+
],
|
|
6937
|
+
"name": "getSupplyRate",
|
|
6938
|
+
"outputs": [
|
|
6939
|
+
{
|
|
6940
|
+
"internalType": "uint256",
|
|
6941
|
+
"name": "",
|
|
6942
|
+
"type": "uint256"
|
|
6943
|
+
}
|
|
6944
|
+
],
|
|
6945
|
+
"payable": false,
|
|
6946
|
+
"stateMutability": "view",
|
|
6947
|
+
"type": "function"
|
|
6948
|
+
},
|
|
6949
|
+
{
|
|
6950
|
+
"constant": true,
|
|
6951
|
+
"inputs": [],
|
|
6952
|
+
"name": "isInterestRateModel",
|
|
6953
|
+
"outputs": [
|
|
6954
|
+
{
|
|
6955
|
+
"internalType": "bool",
|
|
6956
|
+
"name": "",
|
|
6957
|
+
"type": "bool"
|
|
6958
|
+
}
|
|
6959
|
+
],
|
|
6960
|
+
"payable": false,
|
|
6961
|
+
"stateMutability": "view",
|
|
6962
|
+
"type": "function"
|
|
6963
|
+
},
|
|
6964
|
+
{
|
|
6965
|
+
"constant": true,
|
|
6966
|
+
"inputs": [],
|
|
6967
|
+
"name": "jumpMultiplierPerBlock",
|
|
6968
|
+
"outputs": [
|
|
6969
|
+
{
|
|
6970
|
+
"internalType": "uint256",
|
|
6971
|
+
"name": "",
|
|
6972
|
+
"type": "uint256"
|
|
6973
|
+
}
|
|
6974
|
+
],
|
|
6975
|
+
"payable": false,
|
|
6976
|
+
"stateMutability": "view",
|
|
6977
|
+
"type": "function"
|
|
6978
|
+
},
|
|
6979
|
+
{
|
|
6980
|
+
"constant": true,
|
|
6981
|
+
"inputs": [],
|
|
6982
|
+
"name": "kink",
|
|
6983
|
+
"outputs": [
|
|
6984
|
+
{
|
|
6985
|
+
"internalType": "uint256",
|
|
6986
|
+
"name": "",
|
|
6987
|
+
"type": "uint256"
|
|
6988
|
+
}
|
|
6989
|
+
],
|
|
6990
|
+
"payable": false,
|
|
6991
|
+
"stateMutability": "view",
|
|
6992
|
+
"type": "function"
|
|
6993
|
+
},
|
|
6994
|
+
{
|
|
6995
|
+
"constant": true,
|
|
6996
|
+
"inputs": [],
|
|
6997
|
+
"name": "multiplierPerBlock",
|
|
6998
|
+
"outputs": [
|
|
6999
|
+
{
|
|
7000
|
+
"internalType": "uint256",
|
|
7001
|
+
"name": "",
|
|
7002
|
+
"type": "uint256"
|
|
7003
|
+
}
|
|
7004
|
+
],
|
|
7005
|
+
"payable": false,
|
|
7006
|
+
"stateMutability": "view",
|
|
7007
|
+
"type": "function"
|
|
7008
|
+
},
|
|
7009
|
+
{
|
|
7010
|
+
"constant": true,
|
|
7011
|
+
"inputs": [
|
|
7012
|
+
{
|
|
7013
|
+
"internalType": "uint256",
|
|
7014
|
+
"name": "cash",
|
|
7015
|
+
"type": "uint256"
|
|
7016
|
+
},
|
|
7017
|
+
{
|
|
7018
|
+
"internalType": "uint256",
|
|
7019
|
+
"name": "borrows",
|
|
7020
|
+
"type": "uint256"
|
|
7021
|
+
},
|
|
7022
|
+
{
|
|
7023
|
+
"internalType": "uint256",
|
|
7024
|
+
"name": "reserves",
|
|
7025
|
+
"type": "uint256"
|
|
7026
|
+
}
|
|
7027
|
+
],
|
|
7028
|
+
"name": "utilizationRate",
|
|
7029
|
+
"outputs": [
|
|
7030
|
+
{
|
|
7031
|
+
"internalType": "uint256",
|
|
7032
|
+
"name": "",
|
|
7033
|
+
"type": "uint256"
|
|
7034
|
+
}
|
|
7035
|
+
],
|
|
7036
|
+
"payable": false,
|
|
7037
|
+
"stateMutability": "pure",
|
|
7038
|
+
"type": "function"
|
|
7039
|
+
}
|
|
7040
|
+
]
|
|
7041
|
+
},
|
|
6791
7042
|
"JumpRateModel_base0bps_slope10000bps_jump25000bps_kink8000bps": {
|
|
6792
7043
|
"address": "0x9e8fbACBfbD811Fc561af3Af7df8e38dEd4c52F3",
|
|
6793
7044
|
"abi": [
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"ETH": "0x2170Ed0880ac9A755fd29B2688956BD959F933F8",
|
|
18
18
|
"FIL": "0x0D8Ce2A99Bb6e3B7Db580eD848240e4a0F9aE153",
|
|
19
19
|
"InterestRateModelVBNB": "0xC682145a767ca98B743B895f1Bd2D4696bC9C2eC",
|
|
20
|
+
"InterestRateModelVETH": "0x3aa125788FC6b9F801772baEa887aA40328015e9",
|
|
20
21
|
"JumpRateModel_base0bps_slope10000bps_jump25000bps_kink8000bps": "0x9e8fbACBfbD811Fc561af3Af7df8e38dEd4c52F3",
|
|
21
22
|
"JumpRateModel_base0bps_slope10000bps_jump50000bps_kink8000bps": "0x958F4C84d3ad523Fa9936Dc465A123C7AD43D69B",
|
|
22
23
|
"JumpRateModel_base0bps_slope1000bps_jump25000bps_kink8000bps": "0x62A8919C4C413fd4F9aef7348540Bc4B1b5CC805",
|
|
@@ -21,6 +21,15 @@ const func = async function (hre) {
|
|
|
21
21
|
args: [0, "40000000000000000", "1080000000000000000", "700000000000000000"],
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
+
if (network.name === "bscmainnet") {
|
|
25
|
+
await deploy("InterestRateModelVETH", {
|
|
26
|
+
contract: "JumpRateModel",
|
|
27
|
+
from: deployer,
|
|
28
|
+
log: true,
|
|
29
|
+
autoMine: true,
|
|
30
|
+
args: [0, (0, utils_1.parseUnits)("0.03", 18), (0, utils_1.parseUnits)("4.5", 18), (0, utils_1.parseUnits)("0.9", 18)],
|
|
31
|
+
});
|
|
32
|
+
}
|
|
24
33
|
if (network.name === "bscmainnet" || network.name === "bsctestnet") {
|
|
25
34
|
await deploy("InterestRateModelVBNB", {
|
|
26
35
|
contract: "TwoKinksInterestRateModel",
|
|
@@ -27,6 +27,7 @@ const func = async function (hre) {
|
|
|
27
27
|
zksyncmainnet: "0x751Aa759cfBB6CE71A43b48e40e1cCcFC66Ba4aa",
|
|
28
28
|
opsepolia: "0xd57365EE4E850e881229e2F8Aa405822f289e78d",
|
|
29
29
|
opmainnet: "0x2e94dd14E81999CdBF5deDE31938beD7308354b3",
|
|
30
|
+
basesepolia: "0xdf3b635d2b535f906BB02abb22AED71346E36a00",
|
|
30
31
|
bscmainnet: await getTimelock(),
|
|
31
32
|
bsctestnet: await getTimelock(),
|
|
32
33
|
hardhat: deployer,
|
|
@@ -6788,6 +6788,257 @@
|
|
|
6788
6788
|
}
|
|
6789
6789
|
]
|
|
6790
6790
|
},
|
|
6791
|
+
"InterestRateModelVETH": {
|
|
6792
|
+
"address": "0x3aa125788FC6b9F801772baEa887aA40328015e9",
|
|
6793
|
+
"abi": [
|
|
6794
|
+
{
|
|
6795
|
+
"inputs": [
|
|
6796
|
+
{
|
|
6797
|
+
"internalType": "uint256",
|
|
6798
|
+
"name": "baseRatePerYear",
|
|
6799
|
+
"type": "uint256"
|
|
6800
|
+
},
|
|
6801
|
+
{
|
|
6802
|
+
"internalType": "uint256",
|
|
6803
|
+
"name": "multiplierPerYear",
|
|
6804
|
+
"type": "uint256"
|
|
6805
|
+
},
|
|
6806
|
+
{
|
|
6807
|
+
"internalType": "uint256",
|
|
6808
|
+
"name": "jumpMultiplierPerYear",
|
|
6809
|
+
"type": "uint256"
|
|
6810
|
+
},
|
|
6811
|
+
{
|
|
6812
|
+
"internalType": "uint256",
|
|
6813
|
+
"name": "kink_",
|
|
6814
|
+
"type": "uint256"
|
|
6815
|
+
}
|
|
6816
|
+
],
|
|
6817
|
+
"payable": false,
|
|
6818
|
+
"stateMutability": "nonpayable",
|
|
6819
|
+
"type": "constructor"
|
|
6820
|
+
},
|
|
6821
|
+
{
|
|
6822
|
+
"anonymous": false,
|
|
6823
|
+
"inputs": [
|
|
6824
|
+
{
|
|
6825
|
+
"indexed": false,
|
|
6826
|
+
"internalType": "uint256",
|
|
6827
|
+
"name": "baseRatePerBlock",
|
|
6828
|
+
"type": "uint256"
|
|
6829
|
+
},
|
|
6830
|
+
{
|
|
6831
|
+
"indexed": false,
|
|
6832
|
+
"internalType": "uint256",
|
|
6833
|
+
"name": "multiplierPerBlock",
|
|
6834
|
+
"type": "uint256"
|
|
6835
|
+
},
|
|
6836
|
+
{
|
|
6837
|
+
"indexed": false,
|
|
6838
|
+
"internalType": "uint256",
|
|
6839
|
+
"name": "jumpMultiplierPerBlock",
|
|
6840
|
+
"type": "uint256"
|
|
6841
|
+
},
|
|
6842
|
+
{
|
|
6843
|
+
"indexed": false,
|
|
6844
|
+
"internalType": "uint256",
|
|
6845
|
+
"name": "kink",
|
|
6846
|
+
"type": "uint256"
|
|
6847
|
+
}
|
|
6848
|
+
],
|
|
6849
|
+
"name": "NewInterestParams",
|
|
6850
|
+
"type": "event"
|
|
6851
|
+
},
|
|
6852
|
+
{
|
|
6853
|
+
"constant": true,
|
|
6854
|
+
"inputs": [],
|
|
6855
|
+
"name": "baseRatePerBlock",
|
|
6856
|
+
"outputs": [
|
|
6857
|
+
{
|
|
6858
|
+
"internalType": "uint256",
|
|
6859
|
+
"name": "",
|
|
6860
|
+
"type": "uint256"
|
|
6861
|
+
}
|
|
6862
|
+
],
|
|
6863
|
+
"payable": false,
|
|
6864
|
+
"stateMutability": "view",
|
|
6865
|
+
"type": "function"
|
|
6866
|
+
},
|
|
6867
|
+
{
|
|
6868
|
+
"constant": true,
|
|
6869
|
+
"inputs": [],
|
|
6870
|
+
"name": "blocksPerYear",
|
|
6871
|
+
"outputs": [
|
|
6872
|
+
{
|
|
6873
|
+
"internalType": "uint256",
|
|
6874
|
+
"name": "",
|
|
6875
|
+
"type": "uint256"
|
|
6876
|
+
}
|
|
6877
|
+
],
|
|
6878
|
+
"payable": false,
|
|
6879
|
+
"stateMutability": "view",
|
|
6880
|
+
"type": "function"
|
|
6881
|
+
},
|
|
6882
|
+
{
|
|
6883
|
+
"constant": true,
|
|
6884
|
+
"inputs": [
|
|
6885
|
+
{
|
|
6886
|
+
"internalType": "uint256",
|
|
6887
|
+
"name": "cash",
|
|
6888
|
+
"type": "uint256"
|
|
6889
|
+
},
|
|
6890
|
+
{
|
|
6891
|
+
"internalType": "uint256",
|
|
6892
|
+
"name": "borrows",
|
|
6893
|
+
"type": "uint256"
|
|
6894
|
+
},
|
|
6895
|
+
{
|
|
6896
|
+
"internalType": "uint256",
|
|
6897
|
+
"name": "reserves",
|
|
6898
|
+
"type": "uint256"
|
|
6899
|
+
}
|
|
6900
|
+
],
|
|
6901
|
+
"name": "getBorrowRate",
|
|
6902
|
+
"outputs": [
|
|
6903
|
+
{
|
|
6904
|
+
"internalType": "uint256",
|
|
6905
|
+
"name": "",
|
|
6906
|
+
"type": "uint256"
|
|
6907
|
+
}
|
|
6908
|
+
],
|
|
6909
|
+
"payable": false,
|
|
6910
|
+
"stateMutability": "view",
|
|
6911
|
+
"type": "function"
|
|
6912
|
+
},
|
|
6913
|
+
{
|
|
6914
|
+
"constant": true,
|
|
6915
|
+
"inputs": [
|
|
6916
|
+
{
|
|
6917
|
+
"internalType": "uint256",
|
|
6918
|
+
"name": "cash",
|
|
6919
|
+
"type": "uint256"
|
|
6920
|
+
},
|
|
6921
|
+
{
|
|
6922
|
+
"internalType": "uint256",
|
|
6923
|
+
"name": "borrows",
|
|
6924
|
+
"type": "uint256"
|
|
6925
|
+
},
|
|
6926
|
+
{
|
|
6927
|
+
"internalType": "uint256",
|
|
6928
|
+
"name": "reserves",
|
|
6929
|
+
"type": "uint256"
|
|
6930
|
+
},
|
|
6931
|
+
{
|
|
6932
|
+
"internalType": "uint256",
|
|
6933
|
+
"name": "reserveFactorMantissa",
|
|
6934
|
+
"type": "uint256"
|
|
6935
|
+
}
|
|
6936
|
+
],
|
|
6937
|
+
"name": "getSupplyRate",
|
|
6938
|
+
"outputs": [
|
|
6939
|
+
{
|
|
6940
|
+
"internalType": "uint256",
|
|
6941
|
+
"name": "",
|
|
6942
|
+
"type": "uint256"
|
|
6943
|
+
}
|
|
6944
|
+
],
|
|
6945
|
+
"payable": false,
|
|
6946
|
+
"stateMutability": "view",
|
|
6947
|
+
"type": "function"
|
|
6948
|
+
},
|
|
6949
|
+
{
|
|
6950
|
+
"constant": true,
|
|
6951
|
+
"inputs": [],
|
|
6952
|
+
"name": "isInterestRateModel",
|
|
6953
|
+
"outputs": [
|
|
6954
|
+
{
|
|
6955
|
+
"internalType": "bool",
|
|
6956
|
+
"name": "",
|
|
6957
|
+
"type": "bool"
|
|
6958
|
+
}
|
|
6959
|
+
],
|
|
6960
|
+
"payable": false,
|
|
6961
|
+
"stateMutability": "view",
|
|
6962
|
+
"type": "function"
|
|
6963
|
+
},
|
|
6964
|
+
{
|
|
6965
|
+
"constant": true,
|
|
6966
|
+
"inputs": [],
|
|
6967
|
+
"name": "jumpMultiplierPerBlock",
|
|
6968
|
+
"outputs": [
|
|
6969
|
+
{
|
|
6970
|
+
"internalType": "uint256",
|
|
6971
|
+
"name": "",
|
|
6972
|
+
"type": "uint256"
|
|
6973
|
+
}
|
|
6974
|
+
],
|
|
6975
|
+
"payable": false,
|
|
6976
|
+
"stateMutability": "view",
|
|
6977
|
+
"type": "function"
|
|
6978
|
+
},
|
|
6979
|
+
{
|
|
6980
|
+
"constant": true,
|
|
6981
|
+
"inputs": [],
|
|
6982
|
+
"name": "kink",
|
|
6983
|
+
"outputs": [
|
|
6984
|
+
{
|
|
6985
|
+
"internalType": "uint256",
|
|
6986
|
+
"name": "",
|
|
6987
|
+
"type": "uint256"
|
|
6988
|
+
}
|
|
6989
|
+
],
|
|
6990
|
+
"payable": false,
|
|
6991
|
+
"stateMutability": "view",
|
|
6992
|
+
"type": "function"
|
|
6993
|
+
},
|
|
6994
|
+
{
|
|
6995
|
+
"constant": true,
|
|
6996
|
+
"inputs": [],
|
|
6997
|
+
"name": "multiplierPerBlock",
|
|
6998
|
+
"outputs": [
|
|
6999
|
+
{
|
|
7000
|
+
"internalType": "uint256",
|
|
7001
|
+
"name": "",
|
|
7002
|
+
"type": "uint256"
|
|
7003
|
+
}
|
|
7004
|
+
],
|
|
7005
|
+
"payable": false,
|
|
7006
|
+
"stateMutability": "view",
|
|
7007
|
+
"type": "function"
|
|
7008
|
+
},
|
|
7009
|
+
{
|
|
7010
|
+
"constant": true,
|
|
7011
|
+
"inputs": [
|
|
7012
|
+
{
|
|
7013
|
+
"internalType": "uint256",
|
|
7014
|
+
"name": "cash",
|
|
7015
|
+
"type": "uint256"
|
|
7016
|
+
},
|
|
7017
|
+
{
|
|
7018
|
+
"internalType": "uint256",
|
|
7019
|
+
"name": "borrows",
|
|
7020
|
+
"type": "uint256"
|
|
7021
|
+
},
|
|
7022
|
+
{
|
|
7023
|
+
"internalType": "uint256",
|
|
7024
|
+
"name": "reserves",
|
|
7025
|
+
"type": "uint256"
|
|
7026
|
+
}
|
|
7027
|
+
],
|
|
7028
|
+
"name": "utilizationRate",
|
|
7029
|
+
"outputs": [
|
|
7030
|
+
{
|
|
7031
|
+
"internalType": "uint256",
|
|
7032
|
+
"name": "",
|
|
7033
|
+
"type": "uint256"
|
|
7034
|
+
}
|
|
7035
|
+
],
|
|
7036
|
+
"payable": false,
|
|
7037
|
+
"stateMutability": "pure",
|
|
7038
|
+
"type": "function"
|
|
7039
|
+
}
|
|
7040
|
+
]
|
|
7041
|
+
},
|
|
6791
7042
|
"JumpRateModel_base0bps_slope10000bps_jump25000bps_kink8000bps": {
|
|
6792
7043
|
"address": "0x9e8fbACBfbD811Fc561af3Af7df8e38dEd4c52F3",
|
|
6793
7044
|
"abi": [
|
package/dist/hardhat.config.js
CHANGED
|
@@ -203,6 +203,12 @@ const config = {
|
|
|
203
203
|
live: true,
|
|
204
204
|
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
|
|
205
205
|
},
|
|
206
|
+
basesepolia: {
|
|
207
|
+
url: process.env.ARCHIVE_NODE_basesepolia || "https://sepolia.base.org",
|
|
208
|
+
chainId: 84532,
|
|
209
|
+
live: true,
|
|
210
|
+
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
|
|
211
|
+
},
|
|
206
212
|
},
|
|
207
213
|
etherscan: {
|
|
208
214
|
apiKey: {
|
|
@@ -216,6 +222,7 @@ const config = {
|
|
|
216
222
|
arbitrumone: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
217
223
|
opsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
218
224
|
opmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
225
|
+
basesepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
|
|
219
226
|
},
|
|
220
227
|
customChains: [
|
|
221
228
|
{
|
|
@@ -298,6 +305,14 @@ const config = {
|
|
|
298
305
|
browserURL: "https://optimistic.etherscan.io/",
|
|
299
306
|
},
|
|
300
307
|
},
|
|
308
|
+
{
|
|
309
|
+
network: "basesepolia",
|
|
310
|
+
chainId: 84532,
|
|
311
|
+
urls: {
|
|
312
|
+
apiURL: "https://api-sepolia.basescan.org/api",
|
|
313
|
+
browserURL: "https://sepolia.basescan.org/",
|
|
314
|
+
},
|
|
315
|
+
},
|
|
301
316
|
],
|
|
302
317
|
},
|
|
303
318
|
paths: {
|