Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[multichain-supply-weighted] Multichain Supply Weighted Strategy (giveth) #1408

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

divine-comedian
Copy link
Contributor

Fixes # .

Changes proposed in this pull request:

  • Add new strategy 'multichain-supply-weighted'
  • fetch circulating supply of token from a REST API
  • use 'multichain' logic to get the total balance of a given token across many chains
  • divide the sum of balances by the circulating supply
  • apply a weight to the quotient to get the final voting power result

@ChaituVR ChaituVR changed the title [giveth] Multichain Supply Weighted Strategy [multichain-supply-weighted] Multichain Supply Weighted Strategy (giveth) Feb 21, 2024
@ChaituVR
Copy link
Member

Hi @divine-comedian multichain strategy will be deprecated shortly. idea is not to allow more than 8 strategies in a space, https://docs.snapshot.org/user-guides/strategies/voting-strategies#how-to-set-up-a-strategy

@divine-comedian
Copy link
Contributor Author

@ChaituVR I did notice this one #688 but looks like it hasn't moved for over a year.

I'm a bit stumped if that's the case. Do you have any ideas on this one? It's a bit limiting because I need to get the result of multiple strategies and divide it by the result of another.

The goal is to get the total balance of an address across all chains and divide it by the circulating supply.

@ChaituVR
Copy link
Member

The goal is to get the total balance of an address across all chains and divide it by the circulating supply.

You can create a new strategy that can get balances from your contracts :)
make sure it doesn't send more than 5 network requests
https://github.com/snapshot-labs/snapshot-strategies/tree/master?tab=readme-ov-file#code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants