There are 3 smart contact:
MainToken.sol RewardToken.sol StakingToken.sol
node.js v18.16.0
- Deploy the smart contracts in the blockchain network
- git clone https://github.com/dariusjvc/My-NodeJS-DeFi.git
- Make sure you create an .env file with ADMIN_PUBLIC_KEY, ADMIN_PRIVATE_KEY, USER_PUBLIC_KEY, SPENDER_TOKEN_ADDRESS and the BLOCKCHAIN_INTERNAL_HOST inside, in the root of the project
- npm install
- npm run start-dev