-
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 aadmin
role. 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_BLOCK
toEND_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.
forked from Onyx-Protocol/staking
-
Notifications
You must be signed in to change notification settings - Fork 0
al-onyxprotocol/staking
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
XCN Staking smart contract
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Solidity 72.0%
- JavaScript 27.6%
- Other 0.4%