Skip to content

Commit

Permalink
Merge branch 'develop' into feat/ven-2877
Browse files Browse the repository at this point in the history
  • Loading branch information
web3rover committed Nov 28, 2024
2 parents 9efd0b9 + faeb623 commit f45746a
Show file tree
Hide file tree
Showing 8 changed files with 675 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DEPLOYER_PRIVATE_KEY=
#ARCHIVE_NODE_zksyncmainnet=https://open-platform.nodereal.io/<YOUR_KEY_HERE>/zksync
#ARCHIVE_NODE_opsepolia=https://sepolia.optimism.io
#ARCHIVE_NODE_opmainnet=https://opt-mainnet.nodereal.io/v1/<YOUR_KEY_HERE>

#ARCHIVE_NODE_basesepolia=https://sepolia.base.org

ETHERSCAN_API_KEY=
REPORT_GAS=
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
## [9.4.0-dev.3](https://github.com/VenusProtocol/venus-protocol/compare/v9.4.0-dev.2...v9.4.0-dev.3) (2024-11-22)


### Features

* deployed VTreasury to basesepolia ([13aa8c1](https://github.com/VenusProtocol/venus-protocol/commit/13aa8c18e61d3302a8b79724be63433a979e8e1b))
* updating deployment files ([567c94f](https://github.com/VenusProtocol/venus-protocol/commit/567c94f4073be589711a510a532e4f06aa377efd))


### Bug Fixes

* added to custom chains ([777909d](https://github.com/VenusProtocol/venus-protocol/commit/777909dfa6e4e22def057a7fc10e342a0e95e11b))
* fixed url ([d663e71](https://github.com/VenusProtocol/venus-protocol/commit/d663e71814fa53729d1c62083bb357d0684ee25b))
* fixed yarn lock ([aac7867](https://github.com/VenusProtocol/venus-protocol/commit/aac786782298a82635df49d2d63aa093ff3606d0))
* updated ci ([3af2230](https://github.com/VenusProtocol/venus-protocol/commit/3af22304174e0e9386f2f7ecbb61765e9ce31428))

## [9.4.0-dev.2](https://github.com/VenusProtocol/venus-protocol/compare/v9.4.0-dev.1...v9.4.0-dev.2) (2024-11-14)


### Features

* updating deployment files ([9f1a591](https://github.com/VenusProtocol/venus-protocol/commit/9f1a591387868f7d8ab7a393ddb54b573962f075))


### Bug Fixes

* deployed vETH IRM ([e11713c](https://github.com/VenusProtocol/venus-protocol/commit/e11713c94800a8f985fcf01cecf571494b937e06))
* fixed yarn ([6779e55](https://github.com/VenusProtocol/venus-protocol/commit/6779e556baf1e5236397178cf8ac80baee51c4b2))
* updated IRM params ([c95d8ac](https://github.com/VenusProtocol/venus-protocol/commit/c95d8ac946759da7eb74e6aef00e4adc4ed209ed))

## [9.4.0-dev.1](https://github.com/VenusProtocol/venus-protocol/compare/v9.3.0...v9.4.0-dev.1) (2024-10-23)


Expand Down
10 changes: 10 additions & 0 deletions deploy/002-interest-rate-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
});
}

if (network.name === "bscmainnet") {
await deploy("InterestRateModelVETH", {
contract: "JumpRateModel",
from: deployer,
log: true,
autoMine: true,
args: [0, parseUnits("0.03", 18), parseUnits("4.5", 18), parseUnits("0.9", 18)],
});
}

if (network.name === "bscmainnet" || network.name === "bsctestnet") {
await deploy("InterestRateModelVBNB", {
contract: "TwoKinksInterestRateModel",
Expand Down
251 changes: 251 additions & 0 deletions deployments/bscmainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -6788,6 +6788,257 @@
}
]
},
"InterestRateModelVETH": {
"address": "0x3aa125788FC6b9F801772baEa887aA40328015e9",
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "baseRatePerYear",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "multiplierPerYear",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "jumpMultiplierPerYear",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "kink_",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "baseRatePerBlock",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "multiplierPerBlock",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "jumpMultiplierPerBlock",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "kink",
"type": "uint256"
}
],
"name": "NewInterestParams",
"type": "event"
},
{
"constant": true,
"inputs": [],
"name": "baseRatePerBlock",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "blocksPerYear",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "cash",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "borrows",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "reserves",
"type": "uint256"
}
],
"name": "getBorrowRate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "uint256",
"name": "cash",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "borrows",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "reserves",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "reserveFactorMantissa",
"type": "uint256"
}
],
"name": "getSupplyRate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "isInterestRateModel",
"outputs": [
{
"internalType": "bool",
"name": "",
"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",
"name": "cash",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "borrows",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "reserves",
"type": "uint256"
}
],
"name": "utilizationRate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
}
]
},
"JumpRateModel_base0bps_slope10000bps_jump25000bps_kink8000bps": {
"address": "0x9e8fbACBfbD811Fc561af3Af7df8e38dEd4c52F3",
"abi": [
Expand Down
Loading

0 comments on commit f45746a

Please sign in to comment.