There are 3 smart contacts:
MainToken, RewardToken and StakingToken
- The admin will create tokens (StakingTokes), which will then send them to the user
- The user will delegate to the MainToken the permission so that he can stake his tokens
- The user will stake
- The admin will issue some RewardToken to the user, which will be the reward for staking
- git clone https://github.com/dariusjvc/My-DeFi.git.
- Deploy smart contracts
- Open with Intellij IDEA and play