-
Install package
yarn -
Create .env file from .env.example
-
Fill value in .env file:
ACC_PRIVATE_KEY: account deploy all contract and also set as aadminrole. Need deposit ETH in it to deploy.CHN_ADDRESS: address reward token, default is CHN address.REWARD_PER_BLOCK: reward per block while staking contract running. It will be divided among users by weight.START_BLOCK: Contract staking will start in this blockMULTIPLIER: In order to incentive user staking soon, staking contract will bonus reward fromSTART_BLOCKtoEND_BONUS_BLOCK.END_BONUS_BLOCK: Time bonus will end in this block.
-
Compile
yarn hardhat compile -
Deploy + verify:
yarn hardhat deploy --reset --tags deploy-verify --network rinkeby -
You need deposit reward into contract after deploy.
Onyx-Protocol/staking
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|