Skip to content

Commit

Permalink
Merge branch 'feat/ven-2848' of github.com:VenusProtocol/venus-protoc…
Browse files Browse the repository at this point in the history
…ol into feat/ven-2848
  • Loading branch information
web3rover committed Oct 7, 2024
2 parents b0c4089 + c8038cb commit 6d28480
Show file tree
Hide file tree
Showing 4 changed files with 433 additions and 101 deletions.
240 changes: 140 additions & 100 deletions deployments/bscmainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -6498,98 +6498,190 @@
]
},
"InterestRateModelVBNB": {
"address": "0xDb8347b96c94Be24B9c077A4CDDAAD074F6480cf",
"address": "0xc9Be85a8851348f40A6f4773E0fAbC5459E38611",
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "baseRatePerYear",
"type": "uint256"
"internalType": "int256",
"name": "baseRatePerYear_",
"type": "int256"
},
{
"internalType": "uint256",
"name": "multiplierPerYear",
"type": "uint256"
"internalType": "int256",
"name": "multiplierPerYear_",
"type": "int256"
},
{
"internalType": "uint256",
"name": "jumpMultiplierPerYear",
"type": "uint256"
"internalType": "int256",
"name": "kink1_",
"type": "int256"
},
{
"internalType": "uint256",
"name": "kink_",
"type": "uint256"
"internalType": "int256",
"name": "multiplier2PerYear_",
"type": "int256"
},
{
"internalType": "int256",
"name": "baseRate2PerYear_",
"type": "int256"
},
{
"internalType": "int256",
"name": "kink2_",
"type": "int256"
},
{
"internalType": "int256",
"name": "jumpMultiplierPerYear_",
"type": "int256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
"inputs": [],
"name": "InvalidKink",
"type": "error"
},
{
"inputs": [],
"name": "NegativeValueNotAllowed",
"type": "error"
},
{
"inputs": [],
"name": "BASE_RATE_2_PER_BLOCK",
"outputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "baseRatePerBlock",
"type": "uint256"
},
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "BASE_RATE_PER_BLOCK",
"outputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "multiplierPerBlock",
"type": "uint256"
},
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "BLOCKS_PER_YEAR",
"outputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "jumpMultiplierPerBlock",
"type": "uint256"
},
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "JUMP_MULTIPLIER_PER_BLOCK",
"outputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "kink",
"type": "uint256"
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"name": "NewInterestParams",
"type": "event"
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "baseRatePerBlock",
"name": "KINK_1",
"outputs": [
{
"internalType": "uint256",
"internalType": "int256",
"name": "",
"type": "uint256"
"type": "int256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "blocksPerYear",
"name": "KINK_2",
"outputs": [
{
"internalType": "uint256",
"internalType": "int256",
"name": "",
"type": "uint256"
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MULTIPLIER_2_PER_BLOCK",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MULTIPLIER_PER_BLOCK",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "RATE_1",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "RATE_2",
"outputs": [
{
"internalType": "int256",
"name": "",
"type": "int256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
Expand All @@ -6615,12 +6707,10 @@
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
Expand Down Expand Up @@ -6651,12 +6741,10 @@
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isInterestRateModel",
"outputs": [
Expand All @@ -6666,57 +6754,10 @@
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "jumpMultiplierPerBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "kink",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "multiplierPerBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
Expand All @@ -6742,7 +6783,6 @@
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
}
Expand Down
2 changes: 1 addition & 1 deletion deployments/bscmainnet_addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"DefaultProxyAdmin": "0x6beb6D2695B67FEb73ad4f172E8E2975497187e4",
"ETH": "0x2170Ed0880ac9A755fd29B2688956BD959F933F8",
"FIL": "0x0D8Ce2A99Bb6e3B7Db580eD848240e4a0F9aE153",
"InterestRateModelVBNB": "0xDb8347b96c94Be24B9c077A4CDDAAD074F6480cf",
"InterestRateModelVBNB": "0xc9Be85a8851348f40A6f4773E0fAbC5459E38611",
"JumpRateModel_base0bps_slope10000bps_jump25000bps_kink8000bps": "0x9e8fbACBfbD811Fc561af3Af7df8e38dEd4c52F3",
"JumpRateModel_base0bps_slope10000bps_jump50000bps_kink8000bps": "0x958F4C84d3ad523Fa9936Dc465A123C7AD43D69B",
"JumpRateModel_base0bps_slope1000bps_jump25000bps_kink8000bps": "0x62A8919C4C413fd4F9aef7348540Bc4B1b5CC805",
Expand Down
Loading

0 comments on commit 6d28480

Please sign in to comment.