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
Name | Type | Description |
---|---|---|
snapshotBlock | uint256 | the block number to be used for the initial voice credits |
token | address | the token to be used for the initial voice credits |
factor | uint256 | the factor to be used for the initial voice credits |
Return Values
Name | Type | Description |
---|---|---|
clone | address | the address of the new clone |