Skip to content

CreamFi/cream-deployment

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published