Skip to main content
Version: v3.x

ERC20VotesInitialVoiceCreditProxy

This contract allows to set an initial voice credit balance for MACI's voters based on the balance of an ERC20 token at a given block.

snapshotBlock​

uint256 snapshotBlock

the block number to be used for the initial voice credits

token​

address token

the token to be used for the initial voice credits

factor​

uint256 factor

the factor to be used for the initial voice credits

_initialize​

function _initialize() internal

Initializes the contract.

getVoiceCredits​

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

Returns the constant balance for any new MACI's voter

Return Values​

NameTypeDescription
[0]uint256balance