Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 709 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 709 Bytes

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)