Code Monkey home page Code Monkey logo

staking's Introduction

staking - hardhat

  1. Install package

    yarn
    
  2. Create .env file from .env.example

  3. Fill value in .env file:

    1. ACC_PRIVATE_KEY: account deploy all contract and also set as a admin role. Need deposit ETH in it to deploy.
    2. CHN_ADDRESS: address reward token, default is CHN address.
    3. REWARD_PER_BLOCK: reward per block while staking contract running. It will be divided among users by weight.
    4. START_BLOCK: Contract staking will start in this block
    5. MULTIPLIER: In order to incentive user staking soon, staking contract will bonus reward from START_BLOCK to END_BONUS_BLOCK.
    6. END_BONUS_BLOCK: Time bonus will end in this block.
  4. Compile

    yarn hardhat compile
    
  5. Deploy + verify:

    yarn hardhat deploy --reset --tags deploy-verify  --network rinkeby
    
    
  6. You need deposit reward into contract after deploy.

staking's People

Contributors

chainengineer1 avatar semgrep-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.