ethereum / clrfund

Eth2 CLR project built on clr.fund
https://eth2clrfund.netlify.app/
GNU General Public License v3.0
29 stars 15 forks source link

FundingRound should handle poll id mappings to cast votes #358

Open corydickson opened 2 years ago

corydickson commented 2 years ago

Given that a MACI instance can have multiple polls, the funding round should be able to retrieve which is the current active poll id for users to cast votes

daodesigner commented 2 years ago

@corydickson, does this mean that all funding round contracts can reference the same MACI? ie. there is no longer a need for a MACI factory post initial deploy?

corydickson commented 2 years ago

@daodesigner I'd imagine you'd still want a MACI factory to initialize new sets of voting parameters or specify gatekeeper contracts for signups. The distinction here is that now each MACI contract has a storage variable to track each poll spun up for a new round when coordinator calls deployPoll. These id's can be used to access poll contracts so that they can be tallied or for users to send particular messages to vote/change keys.

pettinarip commented 2 years ago

@corydickson @daodesigner just checking the status of this issue. Let me know if we can close or move it to the monorepo as we are cleaning the issues in this repo.