/erc20-staking-rewards

Modified version of the flagship Staking Rewards contract developed by Synthetix.

Primary LanguageSolidityMIT LicenseMIT

Staking Rewards

This repository contains a modified version of the flagship StakingRewards.sol contract developed by Synthetix.

Installation

$ yarn

Compile

$ yarn compile

This task will compile all smart contracts in the contracts directory. ABI files will be automatically exported in artifacts directory.

Testing

$ yarn test

Code coverage

$ yarn coverage

The report will be printed in the console and a static website containing full report will be generated in coverage directory.

Code style

$ yarn prettier

Verify & Publish contract source code

$ npx hardhat  verify --network mainnet $CONTRACT_ADDRESS $CONSTRUCTOR_ARGUMENTS