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

Create a InitialVoiceCreditPerToken for voice credit depending on amount of tokens #1968

Open
2 tasks done
NicoSerranoP opened this issue Dec 12, 2024 · 1 comment
Open
2 tasks done
Assignees
Labels
enhancement New feature or request

Comments

@NicoSerranoP
Copy link
Member

Prerequisites

Please answer the following question for yourself before submitting a feature request.

  • I checked to make sure that this request has not already been filed

Motivation

We need to have a voice credit contract that would assign credit to each voter depending on the amount of tokens the user has or the user has sent to the MACI contract. This way we can use MACI directly for quadratic funding depended on tokens.

Details

We are going to create a new contract similar to ConstantInitialVoiceCreditProxy.sol but it will assign voice credit to each user depending on the amount of tokens the user has or has sent to the MACI contract. There are three variations:

  1. Money sent as ETH directly to the MACI contract
  2. ERC-20 tokens sent to the MACI contract
  3. ERC-20 tokens the user has (do we need a timestamp for this? Is it possible to do it onchain?)

We also need to implement a withdraw function to send the funds somewhere else (an admin wallet, a multi-sig, etc)

@NicoSerranoP NicoSerranoP added the enhancement New feature or request label Dec 12, 2024
@NicoSerranoP NicoSerranoP self-assigned this Dec 12, 2024
@NicoSerranoP NicoSerranoP moved this to In Progress in MACI Dec 12, 2024
@Afeter8
Copy link

Afeter8 commented Dec 14, 2024

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Development

No branches or pull requests

2 participants