Badger-Finance / gitcoin

Repo for gitcoin hack-a-thons,bonunties and code snippets.
7 stars 0 forks source link

Badger Registry 2.0 #48

Open sajanrajdev opened 2 years ago

sajanrajdev commented 2 years ago

Context

Badger, in its constant seek of further decentralization of its ecosystem, developed the Badger Registry. This Smart Contract, allows for a single source of truth of all Badger related contracts in a decentralized fashion. The Badger-Registry currently host a list of keyed smart contract addresses that includes all infrastructure and actors within the Badger infrastructure for each chain that Badger is on. Additionally, the registry hosts a list of all the vaults existing on each chain, keyed by their strategist (account that adds them to the registry) and mapped to their version type (v1 or v2) and to the stage at which they are at (experimental, guarded and production).

The current registry is deterministically deployed at the following address for all chains: 0xFda7eB6f8b7a9e9fCFd348042ae675d1d652454f

As Badger pushes for further decentralization and systematic efficiency, new requirements have come up for the Registry to the point where a new version is required.

Requirements

A new version of the Registry Smart Contract must be developed based on the existing one linked above. The new version should include the following changes:

  1. An initializable strategistGuild multisig account parameter. This actor should now be in charge solely of the promotion of vaults (changing vault status). This address should be modifiable from governance. Vault promotion should still be doable from the Registry's governance.
  2. Add a fourth vault status (Index: 3, Status: Deprecated) - We want to be able fetch the status of all vaults from the Registry directly and populate the UI based on this.
  3. In a similar way that vaults are keyed by their version (v1 or v2) we now also need to map metadata for each vault. This data should be passed when a vault is added in the form of a string (For example, adding a vault could look like this: registry.add(Vault_address, "v1", "DCA-BTC-CVX")). The metadata should be returned along with the vaults when calling the vaults view functions (getVaults, getFilteredProductionVaults and getProductionVaults).
  4. Two way mapping for keys: Currently, addresses can be fetched based on keys (strings). A mapping of keys based on addresses is now also needed.
  5. A function to be able to remove keys (Only callable from governance).

A brownie project is also required around the Smart Contract that includes:

Submissions will not be accepted if they don't compile or if they don't include tests.

Post Bounty Offers

We may pursue the few developers that are able to undertake this challenge and succeed by offering 1-1 tailored bounties with the goal of onboarding them into Core Tech at BadgerDAO (Full time Contributor Positions).

Dev-Discord

Feel free to join us on our Dev Discord: https://discord.gg/Tf2PucrXcE

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 7 hours from now. Please review their action plans below:

1) oschleic has started work.

Discord: ToastyOwen#5179 Email: oschleic@asu.edu 2) ufe-pr has started work.

I'll be improving the Badger registry smart contract. 3) alexni245 has started work.

I will work on the new registry contract 4) mohamad1371 has started work.

I'll do my best to solve this problem 5) ssgums has started work.

The new version of Badger Registry for GR13 Hackathon. 6) jack-the-pug has started work.

A new version of the Badger Registry. 7) koksymaglo has started work.

Grants round13 Hackathon 8) recep9227 has started work.

Kazanç ve ödül için

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 650.0 BADGER (7299.5 USD @ $11.23/BADGER) has been submitted by:

  1. @oschleic
  2. @jack-the-pug
  3. @alexni245
  4. @ssgums
  5. @koksymaglo
  6. @recep9227

@sajanrajdev please take a look at the submitted work:


koksymaglo commented 2 years ago

This is great project

koksymaglo commented 2 years ago

We are all here to support this great project

koksymaglo commented 2 years ago

I will work on the new registry contract

koksymaglo commented 2 years ago

Is great opportunity to work with this project to meet up the registry contract

gitcoinbot commented 2 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 650.0 BADGER (5804.50 USD @ $8.93/BADGER) attached to this issue has been approved & issued to @jack-the-pug.

koksymaglo commented 2 years ago

But please i have not been given my bonus amount

On Tue, 12 Apr 2022, 09:38 Gitcoin.co Bot, @.***> wrote:

Issue Status: 1. Open 2. Started 3. Submitted 4. Done

The funding of 650.0 BADGER (5804.50 USD @ $8.93/BADGER) attached to this issue has been approved & issued to @jack-the-pug https://github.com/jack-the-pug.

— Reply to this email directly, view it on GitHub https://github.com/Badger-Finance/gitcoin/issues/48#issuecomment-1096366179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOZ56ISPQOERJHEIYK2VFVTVEUY6VANCNFSM5QHS2JHQ . You are receiving this because you were mentioned.Message ID: @.***>