Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New release #340

Merged
merged 155 commits into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from 151 commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
7870a1e
feat: deployments of THE and TWT market on testnet
GitGuru7 Aug 23, 2023
8782a78
feat: add mainnet config for new markets
GitGuru7 Aug 23, 2023
207d860
fix: fix caps and typo
GitGuru7 Aug 24, 2023
9618118
fix: deployments after resolving comments
GitGuru7 Aug 24, 2023
24cdcd7
feat: deployments of mainnet market
GitGuru7 Aug 25, 2023
21a52fe
fix: minor
GitGuru7 Aug 25, 2023
7c06a89
chore: update vTWT receiver address
GitGuru7 Aug 25, 2023
f2f0695
fix: supply and borrow speeds of THE market
GitGuru7 Aug 29, 2023
c2e4a9a
chore: update supply borrow caps and CF LF
GitGuru7 Sep 22, 2023
47ad4ea
fix: remove package-lock.json because we use yarn
coreyar Oct 31, 2023
cd209d5
Merge pull request #322 from VenusProtocol/main
chechu Nov 1, 2023
fa21a3d
feat: add PLANET market deployments
GitGuru7 Nov 2, 2023
cb7300b
ci: fix lint
GitGuru7 Nov 2, 2023
9def1eb
fix: reduce reserves block delta in deployment configs
GitGuru7 Nov 2, 2023
a63cdd9
feat: update script to use psr addresses from protocol-reserve package
GitGuru7 Nov 3, 2023
b7359a4
chore: update vPLANET deployments with correct psr address
GitGuru7 Nov 3, 2023
fc1c874
feat: export PLANET market deployment
GitGuru7 Nov 3, 2023
317afbf
Merge pull request #321 from VenusProtocol/remove-package-lock
coreyar Nov 3, 2023
d89619d
chore(release): 2.2.1-dev.1 [skip ci]
toolsvenus Nov 3, 2023
7ea26e4
fix: whitespaces
GitGuru7 Nov 8, 2023
997b58e
Merge pull request #323 from VenusProtocol/feat/VEN-2108
chechu Nov 13, 2023
492b39f
chore(release): 2.3.0-dev.1 [skip ci]
toolsvenus Nov 13, 2023
a64336a
chore: add information about deployed contracts to readme
coreyar Nov 10, 2023
33f92fc
feat: add github job to export and commit deployment by network
coreyar Nov 15, 2023
db0ef9c
feat: support exporting sepolia and ethereum deployments
coreyar Nov 16, 2023
4950a26
feat: updating deployment files
coreyar Nov 17, 2023
49aca86
Merge pull request #325 from VenusProtocol/add-deployed-contracts-inf…
coreyar Nov 17, 2023
6dd144e
chore(release): 2.3.0-dev.2 [skip ci]
toolsvenus Nov 17, 2023
003887d
refactor: convert blocksPerYear constant to immutable and from intere…
0xlucian Aug 22, 2023
d34f157
refactor: add sepolia and ethereum to network and deployment configur…
0xlucian Aug 23, 2023
aad307e
refactor: fix linting
0xlucian Aug 23, 2023
740ae23
refactor: fix PoolLens failing test
0xlucian Aug 23, 2023
a7497da
refactor: add sepolia multisig to deployment config and transfer owne…
0xlucian Aug 28, 2023
dfba236
Update hardhat.config.ts
0xlucian Aug 31, 2023
2eb1b35
refactor: fix variable naming and add natspec for it
0xlucian Aug 31, 2023
b78e110
fix: compilation error
0xlucian Aug 31, 2023
13e5e63
Apply suggestions from code review
0xlucian Sep 1, 2023
4dd4752
chore: add sepolia token and pool deployment config
0xlucian Sep 1, 2023
16cac01
chore: deployment of Mock tokens on Sepolia and adding DEPLOYER_KEY
0xlucian Sep 1, 2023
9d99b73
chore: add config for Sepolia IL deployment
0xlucian Sep 4, 2023
647045b
chore: add deployments of core contracts.
0xlucian Sep 4, 2023
c0a95e8
chore: redeployments on sepolia
GitGuru7 Sep 18, 2023
1fb476e
chore: remove unused contract deployment
GitGuru7 Sep 18, 2023
f63346a
fix: config of usdt_core
GitGuru7 Sep 22, 2023
a9adb7e
refactor: replace multisig with vTreasury for vTokenReceiver address
0xlucian Oct 11, 2023
44a2719
refactor: change vTreasury value to be referenced from preconfiguredA…
0xlucian Oct 11, 2023
a120e2a
Update helpers/deploymentConfig.ts
0xlucian Oct 11, 2023
4244f64
fix: riskfund deploy script fix (wrong resolution of merge conflict)
0xlucian Oct 11, 2023
8469906
fix: lint and preconfiguredAddress decaration of Vtreasury wrong refe…
0xlucian Oct 11, 2023
bfaacdd
fix: format code
0xlucian Oct 11, 2023
6e2cfe5
chore: add deployment config for rewards on sepolia
0xlucian Oct 31, 2023
8aa8e84
chore: add MockXVS along with reward distributors for Sepolia
0xlucian Oct 31, 2023
5f092a6
chore: deploy CRV and crvUSD mock tokens to sepolia
0xlucian Nov 2, 2023
386581f
feat: updating deployment files
0xlucian Nov 27, 2023
822663b
refactor: add multisig for ETHEREUM
0xlucian Nov 27, 2023
e3f1625
fix: delete unused contract for this repo
0xlucian Nov 27, 2023
a4c7e0e
chore: update venus protocol package dependencies versions
0xlucian Nov 27, 2023
416baec
chore: refactor deployments to use deployment addresses from differen…
0xlucian Nov 27, 2023
b957327
feat: updating deployment files
0xlucian Nov 27, 2023
aaa46bb
chore: remove old deployments for sepolia
0xlucian Nov 27, 2023
539f94b
Merge branch 'refactor/ven-1830' of github.com:VenusProtocol/isolated…
0xlucian Nov 27, 2023
d2b7cdb
feat: updating deployment files
0xlucian Nov 27, 2023
0939e0a
fix: hardhat config file
0xlucian Nov 27, 2023
773e78c
Merge branch 'refactor/ven-1830' of github.com:VenusProtocol/isolated…
0xlucian Nov 27, 2023
2af5264
chore: add deployments in hardhat config file
0xlucian Nov 28, 2023
4ed9d5b
chore: update package version of oracle
0xlucian Nov 28, 2023
68b1e8c
refactor: use Multisig values from deployment config
0xlucian Nov 28, 2023
207c11b
chore: add newly deployed contracts
0xlucian Nov 28, 2023
63298f5
fix: added prime hooks to comptroller
web3rover Nov 28, 2023
1ccdfbe
refactor: VIP based config and scripts to match the latest deployment…
0xlucian Nov 28, 2023
4da3b52
refactor: adjust name of imported deployment script
0xlucian Nov 28, 2023
afaeec8
refactor:add unified config for ethereum and other networks and chang…
0xlucian Nov 28, 2023
f1e3083
feat: updating deployment files
0xlucian Nov 28, 2023
8234296
fix: yarn build
0xlucian Nov 28, 2023
06aad44
Merge branch 'refactor/ven-1830' of github.com:VenusProtocol/isolated…
0xlucian Nov 28, 2023
dbb2ce3
chore: update protocol-reserves version
0xlucian Nov 28, 2023
46e1327
fix: update venus-protocol version
0xlucian Nov 28, 2023
7bad19c
fix: bump protocol package version
coreyar Nov 28, 2023
97eb8e1
fix: update version of core pool
web3rover Nov 29, 2023
c93a6f6
feat: updating deployment files
Narayanprusty Nov 29, 2023
efdf4c0
fix: deployment scripts for local deployment and update oracle packag…
0xlucian Nov 29, 2023
b8c14c0
fix: tests
0xlucian Nov 29, 2023
21d82f1
refactor: FORK_TESTNET and FORK_MAINNET variables in fork tests to ma…
0xlucian Nov 29, 2023
45f8913
fix: protocol setup done
web3rover Nov 29, 2023
edf2119
Merge branch 'feat/prime' of github.com:VenusProtocol/isolated-pools …
web3rover Nov 29, 2023
02778ff
fix: added hooks and yield tests
web3rover Nov 29, 2023
28b49d7
Merge pull request #294 from VenusProtocol/refactor/ven-1830
0xlucian Nov 30, 2023
d77bf18
fix: added plp integration tests
web3rover Nov 30, 2023
4e7ed9c
chore(release): 2.3.0-dev.3 [skip ci]
toolsvenus Nov 30, 2023
6858695
fix: resolved conflict
web3rover Nov 30, 2023
d5eca4a
fix: fixed yarn lock
web3rover Nov 30, 2023
0f3b760
feat: updating deployment files
Narayanprusty Nov 30, 2023
67775b6
fix: fixed tests
web3rover Nov 30, 2023
55d894f
Merge branch 'feat/prime' of github.com:VenusProtocol/isolated-pools …
web3rover Nov 30, 2023
2302942
feat: generate file only with addresses of deployed contracts
chechu Dec 1, 2023
8fc14cf
feat: updating deployment files
chechu Dec 1, 2023
4dca405
Merge pull request #328 from VenusProtocol/feat/VEN-2197-addresses-files
chechu Dec 1, 2023
ecc9215
chore(release): 2.3.0-dev.4 [skip ci]
toolsvenus Dec 1, 2023
db810aa
feat: add mock token deployments for opbnbtestnet
GitGuru7 Dec 4, 2023
a15c8ea
refactor: remove token address and update contract verify platform
GitGuru7 Dec 6, 2023
3f6ef95
fix: remove comment
web3rover Dec 6, 2023
ef80a90
fix: remove comment
web3rover Dec 6, 2023
46c3ee8
feat: updating deployment files
Narayanprusty Dec 6, 2023
51188e0
fix: optimised setPrime
web3rover Dec 6, 2023
be73c45
Merge branch 'feat/prime' of github.com:VenusProtocol/isolated-pools …
web3rover Dec 6, 2023
1933446
fix: resolved conflict
web3rover Dec 6, 2023
20a588b
feat: updating deployment files
Narayanprusty Dec 6, 2023
60942d2
fix: fixed lint
web3rover Dec 6, 2023
06f04e8
Merge branch 'feat/prime' of github.com:VenusProtocol/isolated-pools …
web3rover Dec 6, 2023
6121c71
feat: add reward distributor for core pool
GitGuru7 Dec 6, 2023
2834d40
feat: updating deployment files
GitGuru7 Dec 6, 2023
f77f40a
fix: remove duplicate token config
GitGuru7 Dec 6, 2023
b782529
fix: adjust BLOCK_PER_YEAR for ethereum assuming a block is mined ev…
0xlucian Dec 6, 2023
06d1f0f
Merge pull request #332 from VenusProtocol/fix/ven-2214
0xlucian Dec 6, 2023
5f8f48d
chore(release): 2.3.0-dev.5 [skip ci]
toolsvenus Dec 6, 2023
4e29b14
Merge pull request #331 from VenusProtocol/feat/reward-distributor-se…
GitGuru7 Dec 7, 2023
39560e0
chore(release): 2.3.0-dev.6 [skip ci]
toolsvenus Dec 7, 2023
2de9fd8
feat: add IL market deployments to opbnbtestnet
GitGuru7 Dec 11, 2023
40a73f1
fix: add @types/debug
coreyar Dec 11, 2023
2bcf316
fix: exclude external deployments when exporting
coreyar Dec 11, 2023
a66d5d2
feat: updating deployment files
coreyar Dec 11, 2023
9e29b23
Merge pull request #333 from VenusProtocol/feat/VEN-2201
GitGuru7 Dec 12, 2023
4638a30
Merge branch 'develop' into feat/mock-tokens-opBNB
GitGuru7 Dec 12, 2023
90c374e
feat: updating deployment files
GitGuru7 Dec 12, 2023
5809b93
chore: remove THE token related files
GitGuru7 Dec 12, 2023
6b600e7
fix: use custom error
web3rover Dec 12, 2023
e33178e
Merge pull request #334 from VenusProtocol/fix/exclude-deployments-fr…
coreyar Dec 12, 2023
7f1fbd6
chore(release): 2.3.0-dev.7 [skip ci]
toolsvenus Dec 12, 2023
a6a8766
Merge branch 'develop' into feat/VEN-1823
GitGuru7 Dec 14, 2023
dc35475
feat: updating deployment files
GitGuru7 Dec 14, 2023
3c46d88
Merge branch 'develop' into feat/mock-tokens-opBNB
GitGuru7 Dec 15, 2023
ed3dbdb
feat: updating deployment files
GitGuru7 Dec 15, 2023
19f26f6
fix: mainnet verify endpoint
GitGuru7 Dec 15, 2023
45612e7
Merge pull request #329 from VenusProtocol/feat/mock-tokens-opBNB
GitGuru7 Dec 15, 2023
451dd76
chore(release): 2.3.0-dev.8 [skip ci]
toolsvenus Dec 15, 2023
88de673
fix: cvp-01
web3rover Dec 15, 2023
eee4766
chore: add opbnbtestnet and opbnbmainnet to the ci step to extract ad…
chechu Dec 18, 2023
729d2d8
feat: updating deployment files
chechu Dec 18, 2023
98a0822
Merge branch 'develop' into feat/prime
chechu Dec 18, 2023
d3e16d4
feat: updating deployment files
chechu Dec 18, 2023
f753379
Merge pull request #335 from VenusProtocol/chore/VEN-2191
chechu Dec 18, 2023
51c4402
chore(release): 2.3.0-dev.9 [skip ci]
toolsvenus Dec 18, 2023
f5b767f
Merge pull request #295 from VenusProtocol/feat/VEN-1823
GitGuru7 Dec 19, 2023
dad8a9b
chore(release): 2.3.0-dev.10 [skip ci]
toolsvenus Dec 19, 2023
8cc0239
Merge pull request #327 from VenusProtocol/feat/prime
chechu Dec 19, 2023
e6cd771
chore(release): 2.3.0-dev.11 [skip ci]
toolsvenus Dec 19, 2023
9b0e7b8
chore: add deployment script for only deploying implementations of vT…
0xlucian Dec 18, 2023
6b3c66b
refactor: rename testnet to bsctestnet
0xlucian Dec 18, 2023
6fa5890
feat: updating deployment files
0xlucian Dec 20, 2023
28d952f
Merge pull request #336 from VenusProtocol/chore/update-impls
0xlucian Dec 22, 2023
fab3d04
chore(release): 2.3.0-dev.12 [skip ci]
toolsvenus Dec 22, 2023
fd0047e
feat: redeployment of reward distributors
GitGuru7 Dec 27, 2023
4095248
feat: updating deployment files
GitGuru7 Dec 27, 2023
c97758d
Merge pull request #339 from VenusProtocol/feat/reward-distributor-se…
GitGuru7 Dec 28, 2023
1bfee69
chore(release): 2.3.0-dev.13 [skip ci]
toolsvenus Dec 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
MNEMONIC=
ETHERSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
FORK_MAINNET=false
QUICK_NODE_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
# true or false
FORK=false
FORKED_NETWORK=bscmainnet

# Replace with your deployer's private key
DEPLOYER_PRIVATE_KEY=

## Archive nodes - Replace <YOUR_KEY_HERE> with your actual keys and uncomment the line you need
## ARCHIVE_NODE_bsctestnet=https://bsc-testnet.nodereal.io/v1/<YOUR_KEY_HERE>
## ARCHIVE_NODE_bscmainnet=https://bsc-mainnet.nodereal.io/v1/<YOUR_KEY_HERE>
## ARCHIVE_NODE_sepolia=https://ethereum-sepolia.blockpi.network/v1/rpc/public
## ARCHIVE_NODE_ethereum=https://eth-mainnet.nodereal.io/v1/<YOUR_KEY_HERE>
#ARCHIVE_NODE_opbnbtestnet=https://opbnb-testnet.nodereal.io/v1/<YOUR_KEY_HERE>
#ARCHIVE_NODE_opbnbmainnet=https://opbnb-mainnet.nodereal.io/v1/<YOUR_KEY_HERE>

# Uncomment the lines below if you want to deploy on mainnet using Frame Wallet
#ARCHIVE_NODE_ethereum=http://127.0.0.1:1248
#ARCHIVE_NODE_bscmainnet=http://127.0.0.1:1248

# Replace with your Etherscan API key
ETHERSCAN_API_KEY=

# Set to true or false to control gas reporting
REPORT_GAS=
35 changes: 35 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,38 @@ jobs:

- name: Verify deployments work
run: yarn hardhat deploy

export-deployments:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Check out code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.VENUS_TOOLS_TOKEN }}

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 18
cache: "yarn"

- name: Install dependencies
# Hack to get around failing "ethereumjs-abi The remote archive doesn't match the expected checksum" error
run: YARN_CHECKSUM_BEHAVIOR=update yarn

- name: Export deployments
run: |
for NETWORK in bsctestnet bscmainnet ethereum sepolia opbnbtestnet opbnbmainnet; do
EXPORT=true yarn hardhat export --network ${NETWORK} --export ./deployments/${NETWORK}.json
jq -M '{name, chainId, addresses: .contracts | map_values(.address)}' ./deployments/${NETWORK}.json > ./deployments/${NETWORK}_addresses.json
done
yarn prettier

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "feat: updating deployment files"
file_pattern: "deployments/*.json"
175 changes: 175 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,178 @@
## [2.3.0-dev.12](https://github.com/VenusProtocol/isolated-pools/compare/v2.3.0-dev.11...v2.3.0-dev.12) (2023-12-22)


### Features

* updating deployment files ([6fa5890](https://github.com/VenusProtocol/isolated-pools/commit/6fa589057f40ef9d0064513f12045d4f35bbd6e9))

## [2.3.0-dev.11](https://github.com/VenusProtocol/isolated-pools/compare/v2.3.0-dev.10...v2.3.0-dev.11) (2023-12-19)


### Features

* updating deployment files ([d3e16d4](https://github.com/VenusProtocol/isolated-pools/commit/d3e16d46aecc55ec7a9e812efb372a06b4c733b1))
* updating deployment files ([20a588b](https://github.com/VenusProtocol/isolated-pools/commit/20a588b8d943e3d98afda274f085b08127ddf635))
* updating deployment files ([46c3ee8](https://github.com/VenusProtocol/isolated-pools/commit/46c3ee8bd42ab5b1f26fcf304d1c296acb8eb94b))
* updating deployment files ([0f3b760](https://github.com/VenusProtocol/isolated-pools/commit/0f3b7606050b49f3013a01237de6faa81678376a))
* updating deployment files ([c93a6f6](https://github.com/VenusProtocol/isolated-pools/commit/c93a6f6366c3c4e0c7d7c31f3bb4b87154a93ebf))


### Bug Fixes

* add @types/debug ([40a73f1](https://github.com/VenusProtocol/isolated-pools/commit/40a73f1822d84508713a0c28f8277d24ac4fffbb))
* added hooks and yield tests ([02778ff](https://github.com/VenusProtocol/isolated-pools/commit/02778ffdfa11b981ba880ac2b8ba8a028565e5c2))
* added plp integration tests ([d77bf18](https://github.com/VenusProtocol/isolated-pools/commit/d77bf1841c51969d1e37a8902cce19c01aaf7fe8))
* added prime hooks to comptroller ([63298f5](https://github.com/VenusProtocol/isolated-pools/commit/63298f5a0020a595fb6d85e18d69f4a0538a2750))
* cvp-01 ([88de673](https://github.com/VenusProtocol/isolated-pools/commit/88de67386e849e5af26ea5e2a380dc90b007a2ad))
* fixed lint ([60942d2](https://github.com/VenusProtocol/isolated-pools/commit/60942d24a023a2ef2a184fc79749bfe72ca372c5))
* fixed tests ([67775b6](https://github.com/VenusProtocol/isolated-pools/commit/67775b650c7ba3ec71f964b1496a316ab7ffd056))
* fixed yarn lock ([d5eca4a](https://github.com/VenusProtocol/isolated-pools/commit/d5eca4a5a251d99c3d73ecd4ed4f7fd5ff60a504))
* optimised setPrime ([51188e0](https://github.com/VenusProtocol/isolated-pools/commit/51188e0667863ef1f6610e619b1fba467b1a8f88))
* protocol setup done ([45f8913](https://github.com/VenusProtocol/isolated-pools/commit/45f8913d708b6c5efc07db65138167ce05837336))
* remove comment ([ef80a90](https://github.com/VenusProtocol/isolated-pools/commit/ef80a90a4ab9b407889cd03bce0f1c3d81726492))
* remove comment ([3f6ef95](https://github.com/VenusProtocol/isolated-pools/commit/3f6ef9506fe8eb3734604c2792db7e02dea06d45))
* resolved conflict ([1933446](https://github.com/VenusProtocol/isolated-pools/commit/1933446513af6ea16966e622f5ccc8c551b224e8))
* resolved conflict ([6858695](https://github.com/VenusProtocol/isolated-pools/commit/68586955b1f120182c619e041caea0838ce20590))
* update version of core pool ([97eb8e1](https://github.com/VenusProtocol/isolated-pools/commit/97eb8e1e20c70a7cc8dee6b8603ec77925c3086d))
* use custom error ([6b600e7](https://github.com/VenusProtocol/isolated-pools/commit/6b600e7caec67c34476da8cb62ee17c0b052f67f))

## [2.3.0-dev.10](https://github.com/VenusProtocol/isolated-pools/compare/v2.3.0-dev.9...v2.3.0-dev.10) (2023-12-19)


### Features

* add mainnet config for new markets ([8782a78](https://github.com/VenusProtocol/isolated-pools/commit/8782a782da48ff75dad7214d51f0b1699a249bbf))
* deployments of mainnet market ([24cdcd7](https://github.com/VenusProtocol/isolated-pools/commit/24cdcd70dd2bdfa7f88a25ec926b5f064f9c10bd))
* deployments of THE and TWT market on testnet ([7870a1e](https://github.com/VenusProtocol/isolated-pools/commit/7870a1e4a693d5b44b9aada5e2e8a7e029c95ddc))
* updating deployment files ([dc35475](https://github.com/VenusProtocol/isolated-pools/commit/dc35475a8ac5e03c4132c294154e9daf7c8d701e))


### Bug Fixes

* deployments after resolving comments ([9618118](https://github.com/VenusProtocol/isolated-pools/commit/961811811320e662f567efeb0c1a6bd9a9f09fe8))
* fix caps and typo ([207d860](https://github.com/VenusProtocol/isolated-pools/commit/207d8605d457db12d1652980edce79692d9eb474))
* minor ([21a52fe](https://github.com/VenusProtocol/isolated-pools/commit/21a52fef6e8dc1912b865b872c1213e29d8dd607))
* supply and borrow speeds of THE market ([f2f0695](https://github.com/VenusProtocol/isolated-pools/commit/f2f069563029327a7674be20d319115773bc947c))

## [2.3.0-dev.9](https://github.com/VenusProtocol/isolated-pools/compare/v2.3.0-dev.8...v2.3.0-dev.9) (2023-12-18)


### Features

* updating deployment files ([729d2d8](https://github.com/VenusProtocol/isolated-pools/commit/729d2d8f939e298a43f6091257d7dcc117da1266))

## [2.3.0-dev.8](https://github.com/VenusProtocol/isolated-pools/compare/v2.3.0-dev.7...v2.3.0-dev.8) (2023-12-15)


### Features

* add IL market deployments to opbnbtestnet ([2de9fd8](https://github.com/VenusProtocol/isolated-pools/commit/2de9fd829824bbe91e576317c934aa54b3a8fdd0))
* add mock token deployments for opbnbtestnet ([db810aa](https://github.com/VenusProtocol/isolated-pools/commit/db810aa04335ea6d05df81f3423338c2a3c6b291))
* updating deployment files ([ed3dbdb](https://github.com/VenusProtocol/isolated-pools/commit/ed3dbdb9af1f6d9a6c48d1d1efbef497e980d4c2))
* updating deployment files ([90c374e](https://github.com/VenusProtocol/isolated-pools/commit/90c374e379f33e89dbc35a826824251639f87d8f))


### Bug Fixes

* mainnet verify endpoint ([19f26f6](https://github.com/VenusProtocol/isolated-pools/commit/19f26f61131570829e9f4a828625caad5dda7862))

## [2.3.0-dev.7](https://github.com/VenusProtocol/isolated-pools/compare/v2.3.0-dev.6...v2.3.0-dev.7) (2023-12-12)


### Features

* updating deployment files ([a66d5d2](https://github.com/VenusProtocol/isolated-pools/commit/a66d5d2d8b4fbd292820582fd2b8bd5ae057afad))


### Bug Fixes

* exclude external deployments when exporting ([2bcf316](https://github.com/VenusProtocol/isolated-pools/commit/2bcf316f8c8394588ff9a0b72e5fc854a9db28f1))

## [2.3.0-dev.6](https://github.com/VenusProtocol/isolated-pools/compare/v2.3.0-dev.5...v2.3.0-dev.6) (2023-12-07)


### Features

* add reward distributor for core pool ([6121c71](https://github.com/VenusProtocol/isolated-pools/commit/6121c71dcf1d79f6a17ec7ecc14dea5717158e25))
* updating deployment files ([2834d40](https://github.com/VenusProtocol/isolated-pools/commit/2834d40a55b70bb206fef59a9c852ab4706d7484))


### Bug Fixes

* remove duplicate token config ([f77f40a](https://github.com/VenusProtocol/isolated-pools/commit/f77f40a81d4a1509a338e4ac624cf0fced787100))

## [2.3.0-dev.5](https://github.com/VenusProtocol/isolated-pools/compare/v2.3.0-dev.4...v2.3.0-dev.5) (2023-12-06)


### Bug Fixes

* adjust BLOCK_PER_YEAR for ethereum assuming a block is mined every 12 seconds (instead of every 14) ([b782529](https://github.com/VenusProtocol/isolated-pools/commit/b7825299a0611a423c3abd90f7f1fe32274b259f))

## [2.3.0-dev.4](https://github.com/VenusProtocol/isolated-pools/compare/v2.3.0-dev.3...v2.3.0-dev.4) (2023-12-01)


### Features

* generate file only with addresses of deployed contracts ([2302942](https://github.com/VenusProtocol/isolated-pools/commit/23029424d07d3c08aba42f9a08d39b4a3907db8b))
* updating deployment files ([8fc14cf](https://github.com/VenusProtocol/isolated-pools/commit/8fc14cf3da582ddaf3d3fd89bef8e8998a4ea8ea))

## [2.3.0-dev.3](https://github.com/VenusProtocol/isolated-pools/compare/v2.3.0-dev.2...v2.3.0-dev.3) (2023-11-30)


### Features

* updating deployment files ([f1e3083](https://github.com/VenusProtocol/isolated-pools/commit/f1e3083c56a6bca47752928016fb26517cb9c880))
* updating deployment files ([d2b7cdb](https://github.com/VenusProtocol/isolated-pools/commit/d2b7cdb02d284e0582b5edef3e36df7332e12143))
* updating deployment files ([b957327](https://github.com/VenusProtocol/isolated-pools/commit/b957327247f2d5d6c50591fa8dc31a0d97e60a9b))
* updating deployment files ([386581f](https://github.com/VenusProtocol/isolated-pools/commit/386581fd775994ba6bf469e99c0c0f31c71654a7))


### Bug Fixes

* bump protocol package version ([7bad19c](https://github.com/VenusProtocol/isolated-pools/commit/7bad19ceffacebda66270216d74b1a786d49e594))
* compilation error ([b78e110](https://github.com/VenusProtocol/isolated-pools/commit/b78e1100557ce5723c2302ca28265165a24a0c55))
* config of usdt_core ([f63346a](https://github.com/VenusProtocol/isolated-pools/commit/f63346a58644fbb1bc3f51edbfbbdbead25d40f4))
* delete unused contract for this repo ([e3f1625](https://github.com/VenusProtocol/isolated-pools/commit/e3f1625654a24a2e71a8cddff3924d98c8f44198))
* deployment scripts for local deployment and update oracle package version fixing oracle deployments locally ([efdf4c0](https://github.com/VenusProtocol/isolated-pools/commit/efdf4c0584b62020eea3c4f3f4b92877e44b9414))
* format code ([bfaacdd](https://github.com/VenusProtocol/isolated-pools/commit/bfaacdded66adec803d9be0877733610055c9d21))
* hardhat config file ([0939e0a](https://github.com/VenusProtocol/isolated-pools/commit/0939e0af70db867d8350af8f8fc586ed6dd33409))
* lint and preconfiguredAddress decaration of Vtreasury wrong reference ([8469906](https://github.com/VenusProtocol/isolated-pools/commit/8469906743f1b9b7e2ea527fe71c7d25236d35ad))
* riskfund deploy script fix (wrong resolution of merge conflict) ([4244f64](https://github.com/VenusProtocol/isolated-pools/commit/4244f649deb9400df55419634f0baef1874b0390))
* tests ([b8c14c0](https://github.com/VenusProtocol/isolated-pools/commit/b8c14c0fd912b7d466fa71ef86a6018734f3b4f4))
* update venus-protocol version ([46e1327](https://github.com/VenusProtocol/isolated-pools/commit/46e132714bab723863fd13baeec23c01ceab8a00))
* yarn build ([8234296](https://github.com/VenusProtocol/isolated-pools/commit/823429638d7a6d3b237a7ec6cf011865ae81c878))

## [2.3.0-dev.2](https://github.com/VenusProtocol/isolated-pools/compare/v2.3.0-dev.1...v2.3.0-dev.2) (2023-11-17)


### Features

* add github job to export and commit deployment by network ([33f92fc](https://github.com/VenusProtocol/isolated-pools/commit/33f92fc23ff11cbd75138a18b31bc6ffb262281a))
* support exporting sepolia and ethereum deployments ([db0ef9c](https://github.com/VenusProtocol/isolated-pools/commit/db0ef9cd1c7df3ed05174203b8a4b0f19075b749))
* updating deployment files ([4950a26](https://github.com/VenusProtocol/isolated-pools/commit/4950a269f7c616e22502eebbd955bdb3ceb4e2fe))

## [2.3.0-dev.1](https://github.com/VenusProtocol/isolated-pools/compare/v2.2.1-dev.1...v2.3.0-dev.1) (2023-11-13)


### Features

* add PLANET market deployments ([fa21a3d](https://github.com/VenusProtocol/isolated-pools/commit/fa21a3d769046c7cc67de918e1b6b505db5f5141))
* export PLANET market deployment ([fc1c874](https://github.com/VenusProtocol/isolated-pools/commit/fc1c874f7ec28910d63ae77a8c3347cf00bb269b))
* update script to use psr addresses from protocol-reserve package ([a63cdd9](https://github.com/VenusProtocol/isolated-pools/commit/a63cdd929329c8844207ac9e6717d8d8332c885c))


### Bug Fixes

* reduce reserves block delta in deployment configs ([9def1eb](https://github.com/VenusProtocol/isolated-pools/commit/9def1eb75d047c7f3bb043b938dc84c7330631fd))
* whitespaces ([7ea26e4](https://github.com/VenusProtocol/isolated-pools/commit/7ea26e405ebe2c584fa4a3ec74a27bf047e20883))

## [2.2.1-dev.1](https://github.com/VenusProtocol/isolated-pools/compare/v2.2.0...v2.2.1-dev.1) (2023-11-03)


### Bug Fixes

* remove package-lock.json because we use yarn ([47ad4ea](https://github.com/VenusProtocol/isolated-pools/commit/47ad4ea5d1a6cc9e8968b3d4174ed64091137254))

## [2.2.0](https://github.com/VenusProtocol/isolated-pools/compare/v2.1.0...v2.2.0) (2023-11-01)


Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ npx hardhat deploy
- In the deployment scripts you have added `tags` for example: - `func.tags = ["MockTokens"];`
- Once this is done, adding `--tags "<tag_name>,<tag_name>..."` to the deployment command will execute only the scripts containing the tags.

### Deployed Contracts

Deployed contract abis and addresses are exported in the `deployments` directory. To create a summary export of all contracts deployed to a network run

```
$ yarn hardhat export --network <network-name> --export ./deployments/<network-name>.json
```

## Source Code Verification

In order to verify the source code of already deployed contracts, run:
Expand Down
17 changes: 12 additions & 5 deletions contracts/BaseJumpRateModelV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity 0.8.13;
import { IAccessControlManagerV8 } from "@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol";

import { InterestRateModel } from "./InterestRateModel.sol";
import { BLOCKS_PER_YEAR, EXP_SCALE, MANTISSA_ONE } from "./lib/constants.sol";
import { EXP_SCALE, MANTISSA_ONE } from "./lib/constants.sol";

/**
* @title Logic for Compound's JumpRateModel Contract V2.
Expand All @@ -13,6 +13,10 @@ import { BLOCKS_PER_YEAR, EXP_SCALE, MANTISSA_ONE } from "./lib/constants.sol";
* The parameters of this interest rate model can be adjusted by the owner. Version 2 modifies Version 1 by enabling updateable parameters.
*/
abstract contract BaseJumpRateModelV2 is InterestRateModel {
/**
* @notice The approximate number of blocks per year that is assumed by the interest rate model
*/
uint256 public immutable blocksPerYear;
/**
* @notice The address of the AccessControlManager contract
*/
Expand Down Expand Up @@ -52,22 +56,25 @@ abstract contract BaseJumpRateModelV2 is InterestRateModel {

/**
* @notice Construct an interest rate model
* @param blocksPerYear_ The approximate number of blocks per year that is assumed by the interest rate model.
* @param baseRatePerYear The approximate target base APR, as a mantissa (scaled by EXP_SCALE)
* @param multiplierPerYear The rate of increase in interest rate wrt utilization (scaled by EXP_SCALE)
* @param jumpMultiplierPerYear The multiplierPerBlock after hitting a specified utilization point
* @param kink_ The utilization point at which the jump multiplier is applied
* @param accessControlManager_ The address of the AccessControlManager contract
*/
constructor(
uint256 blocksPerYear_,
uint256 baseRatePerYear,
uint256 multiplierPerYear,
uint256 jumpMultiplierPerYear,
uint256 kink_,
IAccessControlManagerV8 accessControlManager_
) {
require(address(accessControlManager_) != address(0), "invalid ACM address");

require(blocksPerYear_ != 0, "Invalid blocks per year");
accessControlManager = accessControlManager_;
blocksPerYear = blocksPerYear_;

_updateJumpRateModel(baseRatePerYear, multiplierPerYear, jumpMultiplierPerYear, kink_);
}
Expand Down Expand Up @@ -162,9 +169,9 @@ abstract contract BaseJumpRateModelV2 is InterestRateModel {
uint256 jumpMultiplierPerYear,
uint256 kink_
) internal {
baseRatePerBlock = baseRatePerYear / BLOCKS_PER_YEAR;
multiplierPerBlock = multiplierPerYear / BLOCKS_PER_YEAR;
jumpMultiplierPerBlock = jumpMultiplierPerYear / BLOCKS_PER_YEAR;
baseRatePerBlock = baseRatePerYear / blocksPerYear;
multiplierPerBlock = multiplierPerYear / blocksPerYear;
jumpMultiplierPerBlock = jumpMultiplierPerYear / blocksPerYear;
kink = kink_;

emit NewInterestParams(baseRatePerBlock, multiplierPerBlock, jumpMultiplierPerBlock, kink);
Expand Down
Loading