{"id":20002079,"url":"https://github.com/pooltogether/badger-yield-source","last_synced_at":"2025-05-04T15:34:00.659Z","repository":{"id":48647971,"uuid":"381137543","full_name":"pooltogether/badger-yield-source","owner":"pooltogether","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-15T23:34:37.000Z","size":625,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-23T21:42:34.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pooltogether.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-28T19:14:43.000Z","updated_at":"2024-04-23T21:42:34.353Z","dependencies_parsed_at":"2022-09-11T01:01:02.872Z","dependency_job_id":null,"html_url":"https://github.com/pooltogether/badger-yield-source","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fbadger-yield-source","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fbadger-yield-source/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fbadger-yield-source/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pooltogether%2Fbadger-yield-source/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pooltogether","download_url":"https://codeload.github.com/pooltogether/badger-yield-source/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224394443,"owners_count":17303916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T05:19:41.356Z","updated_at":"2024-11-13T05:19:41.935Z","avatar_url":"https://github.com/pooltogether.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"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)\n![Tests](https://github.com/pooltogether/badger-yield-source/actions/workflows/test.yml/badge.svg)\n![Linting](https://github.com/pooltogether/badger-yield-source/actions/workflows/lint.yml/badge.svg)\n\nAdapted from https://github.com/steffenix/sushi-pooltogether\n\n# Install project\n\n```\nyarn\n```\n\n# Run tests\n\n## Setup\n\nCopy .env.sample to .env and update the required enviroment variables to ran integration tests:\n\n```\nWEB3_INFURA_PROJECT_ID=\nETHERSCAN_TOKEN=\n```\n\nYou will get the first one from https://infura.io/\nYou will get the second one from https://etherscan.io/\n\n## Verify\n\n```\nyarn verify\n```\n\nruns both test and hint.\n\n## Test\n\n```\nyarn test\n```\n\n## Coverage\n\n```\nyarn coverage\n```\n\n# Deployment\n\nIn order to deploy to mainnet:\n\nUpdate `HDWALLET_MNEMONIC` in your env file and deploy:\n\n```\nenv-cmd yarn hardhat --network mainnet deploy\nenv-cmd yarn hardhat --network mainnet etherscan-verify --api-key $ETHERSCAN_TOKEN\n```\n\nThen, have [Badger Gov](https://snapshot.org/#/badgerdao.eth) whitelist the yield source contract in the BadgetSett contract.\n\n```\n  await badgerSett.connect(badger.governance).approveContractAccess(yieldSource.address);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpooltogether%2Fbadger-yield-source","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpooltogether%2Fbadger-yield-source","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpooltogether%2Fbadger-yield-source/lists"}