MaverickV2VotingEscrowFactory
Inherits: IMaverickV2VotingEscrowFactory
Factory to deploy veTokens. The resulting ve contracts are deployed using create2 and have deterministic addresses.
State Variables
baseTokenParameter
This function retrieves the default base token used for creating new voting escrow contracts. This state variable is only used temporarily when a new veToken is deployed.
isFactoryToken
This function checks whether a provided IMaverickV2VotingEscrow contract address was created by this factory.
legacyVeMav
This function retrieves the address of the legacy Maverick V1 Voting Escrow (veMAV) token. The address will be zero for blockchains where this contract is deployed that do not have a legacy MAV contract deployed.
_allVotingEscrow
Functions
constructor
createVotingEscrow
Create a ve token for an input base token.
Once the ve contract is created, it will call name()
and symbol()
on the baseToken
. If those functions do not exist, the ve creation will revert.
Parameters
Returns
votingEscrows
This function retrieves a paginated list of existing Maverick V2 Voting Escrow (veToken) contracts within a specified index range.
Parameters
Returns
votingEscrowsLength
This function retrieves the total number of deployed Maverick V2 Voting Escrow (veToken) contracts.
Returns
votingEscrowAddress
This function retrieves the address of the existing Maverick V2 Voting Escrow (veToken) contract associated with a specific ERC20 base token.
Parameters
Returns
_nameSymbolGetter
Last updated