Skip to main content
Version: v3.x

ERC20VotesInitialVoiceCreditProxyFactory

Factory contract for deploying minimal proxy instances of ERC20VotesInitialVoiceCreditProxy.

Simplifies deployment of ERC20VotesInitialVoiceCreditProxy clones with appended configuration data.

constructor

constructor() public

Initializes the factory with the ERC20VotesInitialVoiceCreditProxy implementation.

deploy

function deploy(uint256 snapshotBlock, address token, uint256 factor) public returns (address clone)

Deploys a new ERC20VotesInitialVoiceCreditProxy clone.

Parameters

NameTypeDescription
snapshotBlockuint256the block number to be used for the initial voice credits
tokenaddressthe token to be used for the initial voice credits
factoruint256the factor to be used for the initial voice credits

Return Values

NameTypeDescription
cloneaddressthe address of the new clone