Skip to main content
Version: v1.2

ConstantInitialVoiceCreditProxy

This contract allows to set a constant initial voice credit balance for MACI's voters.

balance

uint256 balance

the balance to be returned by getVoiceCredits

constructor

constructor(uint256 _balance) public payable

creates a new ConstantInitialVoiceCreditProxy

Parameters

NameTypeDescription
_balanceuint256the balance to be returned by getVoiceCredits

getVoiceCredits

function getVoiceCredits(address, bytes) public view returns (uint256)

Returns the constant balance for any new MACI's voter

Return Values

NameTypeDescription
[0]uint256balance