HNY Uniswap Exchange: https://info.honeyswap.org/pair/0x4505b262dc053998c10685dc5f9098af8ae5c8ad
- Install all dependencies in the root directory execute:
$ npm install
- Run tests with:
$ npm run test
- Install all dependencies if not already installed:
$ npm install
-
Update the gas price to whatever is currently being accepted by the network in the
truffle-config.js
file. -
Deploy to xDai. Set your private key mnemonic in the
MNEMONIC
environment variable.
$ npx truffle deploy --network xdai
-
Approve the Unipool contract address to take reward amount. If the contract is verified on Etherscan you can use MetaMask and their contract interface to do this. Otherwise use your preferred method for interacting with contracts.
-
Add a reward amount by going to the Etherscan UI at the Unipool contract address, connecting the MetaMask account and excuting
notifyRewardAmount(amount)
with the amount to reward. Remember the amount is padded with 18 zeros. Eg a reward of 1000 HNY tokens would be 1000000000000000000000.