Giter VIP home page Giter VIP logo

unipool's Introduction

Honey Unipool

Run tests

  1. Install all dependencies in the root directory execute:
$ npm install
  1. Run tests with:
$ npm run test

Deploy to Xdai

  1. Install all dependencies if not already installed:
$ npm install
  1. Update the gas price to whatever is currently being accepted by the network in the truffle-config.js file.

  2. Deploy to xDai. Set your private key mnemonic in the MNEMONIC environment variable.

$ npx truffle deploy --network xdai

Create a reward (will be spread across 30 days)

  1. Approve the Unipool contract address to take reward amount. If the contract is verified on Etherscan you can use MetaMask and their contract interface to do this. Otherwise use your preferred method for interacting with contracts.

  2. Add a reward amount by going to the Etherscan UI at the Unipool contract address, connecting the MetaMask account and excuting notifyRewardAmount(amount) with the amount to reward. Remember the amount is padded with 18 zeros. Eg a reward of 1000 HNY tokens would be 1000000000000000000000.

unipool's People

Contributors

jacko125 avatar k06a avatar onbjerg avatar willjgriff avatar anisoptera 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.