This project is using Hardhat for development, compiling, testing and deploying. The development tool used for development is Visual Studio Code which has great plugins for solidity development and mocha testing.
-
Ethereum
- Solareum token (ERC20) : 0x99B600D0a4abdbc4a6796225a160bCf3D5Ce2a89
-
Ethereum Goerli
- Solareum token (ERC20) : 0x5fbc1F3BB78E8614D89DCB82f4d76d37B63af2fC
APR = (1 + (rewardYield/rewardDenominator)) ^ (365 * 2) // rebase each 12 hours = twice a day APR = (1 + 0.004576915) ^ 730 = 28.037 = 2803.7% APY
Introduction to compiling these contracts
npm install or yarn install
npx hardhat compile
npx hardhat testYou can use this for local development with for example metamask. Hardhat node guide
npx hardhat nodeUse the scripts in the "scripts" folder. Each script has the command to start it on top.
Make sure you have set the right settings in your '.env' file. You have to create this file with the following contents yourself:
PRIVATE_KEY=<private_key>
GOERLI_INFURA=
MAIN_INFURA=
DEFENDER_TEAM_API_KEY="<defender_key>"
DEFENDER_TEAM_API_SECRET_KEY="<defender_secret>"