maci
maci copied to clipboard
Feat: voice credit per tokens (ERC20 or ETH sent to an address)
Description
We need a feature to give each voter a specific voice credit amount depending on how much ERC-20 tokens or ETH the user has send to an address. Related to https://github.com/privacy-scaling-explorations/maci/issues/1968
Steps:
- Deploy the
PerTokenVoiceCreditProxy
contract - Send ERC20 tokens or ETH to the contract using
registerVoiceCredits
(this is happening outside any Poll or MACI function. Should it stay that way or should we integrate it into thejoinPoll
step?) - Vote into a specific poll. The contract will use
getVoiceCredits
to calculate how much credit a voter has
Related issue(s)
Close #1968
Confirmation
[!IMPORTANT] We do not accept minor grammatical fixes (e.g., correcting typos, rewording sentences) unless they significantly improve clarity in technical documentation. These contributions, while appreciated, are not a priority for merging. If there is a grammatical error feel free to message the team.
- [X] I have read and understand MACI's contributor guidelines and code of conduct.
- [X] I ran and verified that all tests pass according to MACI's testing guide.