Adapted from https://github.com/steffenix/sushi-pooltogether
yarn
Copy .env.sample to .env and update the required enviroment variables to ran integration tests:
WEB3_INFURA_PROJECT_ID=
ETHERSCAN_TOKEN=
You will get the first one from https://infura.io/ You will get the second one from https://etherscan.io/
yarn verify
runs both test and hint.
yarn test
yarn coverage
In order to deploy to mainnet:
Update HDWALLET_MNEMONIC
in your env file and deploy:
env-cmd yarn hardhat --network mainnet deploy
env-cmd yarn hardhat --network mainnet etherscan-verify --api-key $ETHERSCAN_TOKEN
Then, have Badger Gov whitelist the yield source contract in the BadgetSett contract.
await badgerSett.connect(badger.governance).approveContractAccess(yieldSource.address);