Skip to main content
Version: v2.x

Voice Credits Proxy Smart Contract

info

The VoiceCreditProxy contract is used to assign voice credits to users. Whichever implementation should the MACI deployers use, this must implement a view function that returns the balance for a user, such as the one below:

function getVoiceCredits(address _user, bytes memory _data) public virtual view returns (uint256) {}

The repository comes with a simple implementation called ConstantInitialVoiceCreditProxy which assigns a fixed amount of voice credits to each user.