Skip to content

pooltogether/badger-yield-source

Repository files navigation

Coverage Status Tests Linting

Adapted from https://github.com/steffenix/sushi-pooltogether

Install project

yarn

Run tests

Setup

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/

Verify

yarn verify

runs both test and hint.

Test

yarn test

Coverage

yarn coverage

Deployment

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);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •