Skip to content

Unique Smart Contract for Staking of ERC-20 Token in different time-locks.

Notifications You must be signed in to change notification settings

rafiulhc/crypto-staking-smart-contract

Repository files navigation


Staking smart contract written in solidity

Table of Contents
  1. Inspiration
  2. About The Project
  3. Getting Started
  4. Testing
  5. Usage
  6. Contributing
  7. License
  8. Contact

Smart Contract Deplyed to Ethereum Mainnet, Binance Smart Chain, Fantop Opera and Avalanche C-Chain

Contract Address

0xf6aF8E8a436A036E763928dCF96f2B367e8E25B3

stsking

Smart Contract written in solidity

Inspiration

Blockchain technology enables decentralized applications (DApps) or smart contracts. Staking is an amazing opportunity in Blockchain space which enable users to stake their asset/token to get APY%.

About The Project

Staking smart contract, EVM Compatible Generate APY in 4 terms. a. One Month b. Three Months c. Six Months d. One Year

(back to top)

Built With

(back to top)

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/rafiulhc/crypto-staking-smart-contract.git
  2. Install NPM packages
    npm install

(back to top)

Change the secret variables as process.env.SECRET_KEY and process.env.ALCHEMY provided by API provider if deploy to mainnet (Ethereum, Binance, Fantom, Avalanche etc.) or remote testnet(rinkeby, ropsten, goerli etc.)

  npx hardhat compile
  npx hardhat run --network mainnet scripts/deploy.js

Secret Variables

Testing

npx hardhat compile
npx hardhat run --network localhost scripts/deploy.js
npx hardhat test

After running the commands in terminal should show the tests results....

Tests

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

None

(back to top)

Contact

Rafiul Hasan - Linkedin Twitter - rafiul.hasan.chowdhury@gmail.com

Project Link: [https://github.com/rafiulhc/crypto-staking-smart-contract.git](https://github.com/rafiulhc/crypto-staking-smart-contract.git

(back to top)

Releases

No releases published

Packages

No packages published