snapshot-labs / snapshot-hub

GraphQL API for Snapshot
https://hub.snapshot.org/graphql
MIT License
104 stars 198 forks source link

Refactor delegation mechanics and make as a core feature #280

Open bonustrack opened 2 years ago

bonustrack commented 2 years ago

We need to specs how to move to delegation as core feature, this will require changes on:

snapshot-hub snapshot-score snapshot-strategies snapshot

ChaituVR commented 2 years ago

Few questions to find out the specs:

ChaituVR commented 2 years ago
bonustrack commented 2 years ago

@ChaituVR Core delegation should work only with "Delegated + Own Voting power" we shouldn't provide option to work with just Delegated vp, not sure who would need that? Also we shouldn't allow "Delegator can take back their voting power when they vote" this is exactly what blocking us to store vp when someone cast a vote. So basically you can only enable or disable delegation. This mean we need to store on the hub db for each proposal if there is delegation enabled or not. We also need to think how it work if someone delegate voting power in multiple chain.

zzuziak commented 1 year ago

Hi @bonustrack @ChaituVR , what's the status on this one? Does it need a pitch?

ChaituVR commented 1 year ago

Yep need a pitch, I feel now we can support delegation as a core feature (at least for non-overriding strategies)