/staking-contract

The staking smart contract for EVM compatible blockchain networks

Primary LanguageTypeScriptMIT LicenseMIT

Staking Contract

Usage


Install requirements with npm:

npm install

Run all tests:

npx hardhat test

Report Gas:

REPORT_GAS=true npx hardhat test

Deploy

Preparation:

  • Set NODE_URL in .env
  • Set STAKE_TOKEN in .env
  • Set REWARD_TOKEN in .env
  • Set PRIVATE_KEY in .env
npx hardhat run scripts/deploy.ts --network <network>