V1 of smart contract for reward distribution and claiming.
- NodeJS (version we used it v20.17.0).
- To install all the necessary dependencies, run:
npm install- Then set up your .env file:
ALCHEMY_API_KEY=
COINMARKETCAP_API_KEY=
ETHERSCAN_API_KEY=
REPORT_GAS=false
OWNER=
PRIVATE_KEY=Currently, the price in USD does not get reported. It is not a coinmarketcap issue, since when curled, it returns current POL/USD ratio. So it's probably an issue of Hardhat and Polygon interaction.
- Finally, run the tests with the following command:
npx hardhat test