Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/badger-finance/badger-strategies
https://github.com/badger-finance/badger-strategies
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/badger-finance/badger-strategies
- Owner: Badger-Finance
- Created: 2021-07-30T13:49:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-22T15:42:53.000Z (about 2 years ago)
- Last Synced: 2023-03-03T20:28:54.886Z (over 1 year ago)
- Size: 5.86 KB
- Stars: 5
- Watchers: 9
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# badger-strategies
This repo is used to coordinate the development, deployment and verification of Strategies by Badger DAO
## Steps
Typically the strat will go through:
- Initial Review, where we will ask for revisions
- For each revision, make sure to tag a release
- Deployment, we will have you deploy the strat so it can be run, make sure to add the strategy to the registry under your address
- Review Board: The review board will review the code as well for any security risks
- Release: The strategy is live and the issue is closed, make sure to publish all addresses related to the strat and to verify all contracts## How to Add a new strategy for review
Create a new issue, with the name of the strategy, and the network it targets
Create a Release in your Strategy Repository
Link to that release in the Strategy Issue
If you're working with a new protocol, make a DD document and attach that as well, ideally reach out earlier with DD before writing code.
### What to do while you wait for review
- Make a release for your Strategy, tag it and then link that in the issue (no generic URL)
- Deploy your Strategy with development settings and have it run (ask FE to add it to test environment)
- Deposit some funds in the Strategy and Harvest it## How to Review a Strategy
- Run all tests, take a screenshot and post it on the review
- Ask questions if you don't understand what the strategy is doing
- If you understand the strat, write a simple summary of what you think the strat does in the review as a sanity check so others can confirm or tell you that your interpretation is wrong
- Run security checks (Slither)
- Do a sanity check on all methods
- Check that tests and infra have not been compromised
- Say LGTM## Before it can be promoted (on the Registry)
- Use the Production Controller
- Have an Harvest via ACL
- Run Emissions and BadgerTree via RewardsLogger
- Run script to check config by comparing it to the BadgerRegistry
- Frontend can deposit, withdraw, etc..
- APY Math is correct
- Review Board Security Check