Farming contract based on https://github.com/Uniswap/liquidity-staker; currently deployed at 0xc54B9F82C1c54E9D4d274d633c7523f2299c42A0 on Ethereum Mainnet
- install truffle globally
npm install -g truffle
- Populate .env variables
- run
yarn
- run
yarn deploy:testnet
ORyarn deploy:mainnet
to deploy the factory contract and a farming contract using values specified in .env- Make note of the deployed
StakingRewardsFactory
contract address and the loggedstakingContractInfo
which has the deployed StakingRewards contract address
- Make note of the deployed
*** IMPORTANT ***
- Wait for the stakingRewardsGenesis time to pass before sending any fox.
- Verify that the genesis time has passed before sending any funds
- Send at least the amount of fox specified in .env (REWARD_AMOUNT) to the
StakingRewardsFactory
contract address from step 4 - run
yarn fund:testnet
ORyarn fund:mainnet
to instruct the factory contract to send its fox to and initialize the farming contract launched in step 4