Skip to content

iamoracle/celo-staking-contract

Repository files navigation

Staking Contract

Staking and reward contracts are popular mechanisms for incentivizing participation in the activities of a blockchain network. Users can use these contracts to lock up their tokens as collateral to earn rewards. This article will look at using the Solidity programming language to create a staking and reward contract.

Install Dependencies

yarn install

Setup

  1. Change the token in ./scripts/deploy.js to your custom token.

  2. Rename ./env_example to .env and paste in your private key.

Deploy

npx hardhat run ./scripts/deploy.js

About

Simple Staking Contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors