This Codebase let user stake and lock their lp for the specified time. User will face penalty in reward amount incase try to withdraw before locktime
Clone the repo
git clone https://github.com/talhamalik883/lp_penalty_staking.git
Code is developed and tested using hardhat frameword
npm install
npx hardhat compile
ganache-cli -m "cupboard tennis easy year sunset puppy silent soul athlete good flight resemble" -h 0.0.0.0
npx hardhat test --ganache
- Make sure to copy .env.example to .env and add needed values
- Update variables in scripts/deploy.js file
- Utilized the commented code in deploy.js file if needed
npx hardhat run scripts/deploy.js --network networkname