Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pooltogether/badger-yield-source
https://github.com/pooltogether/badger-yield-source
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pooltogether/badger-yield-source
- Owner: pooltogether
- Created: 2021-06-28T19:14:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-15T23:34:37.000Z (over 3 years ago)
- Last Synced: 2024-04-23T21:42:34.352Z (9 months ago)
- Language: Solidity
- Size: 610 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Coverage Status](https://coveralls.io/repos/github/pooltogether/badger-yield-source/badge.svg?branch=master)](https://coveralls.io/github/0xkarl/badger-sett-pooltogether?branch=master)
![Tests](https://github.com/pooltogether/badger-yield-source/actions/workflows/test.yml/badge.svg)
![Linting](https://github.com/pooltogether/badger-yield-source/actions/workflows/lint.yml/badge.svg)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](https://snapshot.org/#/badgerdao.eth) whitelist the yield source contract in the BadgetSett contract.
```
await badgerSett.connect(badger.governance).approveContractAccess(yieldSource.address);
```