https://rinkeby.etherscan.io/address/0x4AB7544890020E913995eAf0582B370175Ee2019#code
- Set initial values on scripts/deploy.ts file
- Deploy contract running on console:
node scripts/deploy.ts
- Copy address of deployed contract and paste to .env file as CONTRACT_ADDRESS
- Use stake, claim and unstake functions
- stake()
Staking function, takes amount of LP Tokens
- claim()
Claims reward if reward rate passes
- unstake()
Unstakes the full amount and claims left rewards
- setRewardRate()
Sets the time reward gains
- setLockTime()
Sets the lock time, user can't unstake unless it passes
- setRewardPercent()
Sets percent of rewards gained from amount of LP Tokens staked
node scripts/deploy.js --network rinkeby
npx hardhat test
npx hardhat stake
npx hardhat claim
npx hardhat unstake