Skip to content

coredao-org/Earn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install dependencies steps

  1. Install node on MacOS, if other operating system refer to https://hardhat.org/tutorial/setting-up-the-environment.

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
    nvm install 20
    nvm use 20
    nvm alias default 20
    npm install npm --global # Upgrade npm to the latest version
  2. Install dependencies

    npm install

Deply contracts

  1. Deploy STCore.sol
  2. Deploy Earn.sol using STCore's address
  3. Call STCore's setEarnAddress(address _earn) using Earn's address
  4. Call Earn's updateOperator(address _operator)
  5. Call Earn's updateProtocolFeeReveiver(address _protocolFeeReceiver)