Skip to content

Pool for users to stake an ERC-20 token and receive a share of the total reward pool after certain epochs

License

Notifications You must be signed in to change notification settings

JO-OLADEJI/Honeycomb

Repository files navigation

Honeycomb 🍯

Pool for users to stake an ERC-20 token and receive a share of the total reward pool after (n) number of epochs

Setup 💻

After cloning repository,

  • Install all dependencies by running
npm install
  • Compile contracts using
npx hardhat compile
  • Assign the private key of deployer address to the DEPLOYER variable and your rinkeby node url to RINKEBY_NODE in .env.example file

  • Rename .env.example to .env

  • Deploy contract to rinkeby testnet by running

npx hardhat run scripts/deploy.js --network rinkeby

Note that the contract is deployed using an epoch of 15 minutes. To change this, modify the T variable in scripts/deploy.js file before deploying

  • Copy the address of the BEE token from the console and paste it in app/src/utils/erc20.json file, as the value of the address key

  • Copy the address of the HONEYCOMB also from the console and paste it in app/src/utils/honeycomb.json file, as the value of the address key

  • Run the dApp using

cd app
npm start

To run tests 🧪

After cloning repository,

  • Install all dependencies by running
npm install
  • Compile contracts using
npx hardhat compile
  • Spin up a ganache instance and add the the private keys of 4 signers(addresses) to their variables in .env.example file

  • Rename .env.example to .env

  • Change the defaultNetwork value to "ganache" in the hardhat.config.js file.

  • Run tests using

npx hardhat test

Technologies 🛠

About

Pool for users to stake an ERC-20 token and receive a share of the total reward pool after certain epochs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published