Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 1.31 KB

README.md

File metadata and controls

47 lines (27 loc) · 1.31 KB

Cream Finance Deployment Script

Installation

git clone https://github.com/CreamFi/cream-deployment
cd cream-deployment
yarn install

Setup

.env

Copy .env from .env.default

cp .env.default .env

abd fill in all the variables in .env

hardhat.config.ts

Modify namedAccounts in hardhat.config.ts and add networks if necessary.

Deployment

Deploy Comptroller, PriceOracle, InterestRateModel, etc.

npx hardhat deploy --network <NETWORK>

Options

--tags <tags>: only excute deploy scripts with the given tags (separated by commas) and their dependencies

See more options here for hardhat deploy.

Deploy crTokens

Edit constructor arguments in /scripts/deploy_new_markets.ts before executing the comment below.

npx hardhat run scripts/deploy_new_markets.ts --network <NETWORK>

Support Market

Fill up the crToken address, price feed source, reserve factors, etc. before execution

npx hardhat run scripts/support_multiple_markets.ts --network <NETWORK>

Verification

npx hardhat --network <NETWORK> sourcify

Note: CWrappedNativeDelegator and CErc20Delegator need to verify manually by uploading the flatten source code CWrappedNativeDelegatorFlatten.sol and CErc20DelegatorFlatten.sol