IMaverickV2IncentiveMatcherFactory
Functions
incentiveMatcherParameters
veFactory
This function retrieves the address of the MaverickV2VotingEscrowFactory contract.
Returns
Name | Type | Description |
---|---|---|
|
| The address of the MaverickV2VotingEscrowFactory contract. |
rewardFactory
This function retrieves the address of the MaverickV2RewardFactory contract.
Returns
Name | Type | Description |
---|---|---|
|
| The address of the MaverickV2RewardFactory contract. |
isFactoryIncentiveMatcher
This function checks if the current contract is a factory contract for IncentiveMatchers.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the corresponding IncentiveMatcher contract. |
Returns
Name | Type | Description |
---|---|---|
|
| True if the contract is a factory contract, False otherwise. |
incentiveMatcherForVe
This function retrieves the address of the IncentiveMatcher contract associated with the current veToken.
Parameters
Name | Type | Description |
---|---|---|
|
| The voting escrow token to look up. |
Returns
Name | Type | Description |
---|---|---|
|
| The address of the corresponding IncentiveMatcher contract. |
createIncentiveMatcher
This function creates a new IncentiveMatcher contract for a given base token. The basetoken is required to have a deployed ve token before incentive matcher can be created. If no ve token exists, this function will revert. A ve token can be created with the ve token factory: veFactory()
.
Parameters
Name | Type | Description |
---|---|---|
|
| The base token for the new IncentiveMatcher. |
Returns
Name | Type | Description |
---|---|---|
|
| The voting escrow token for the IncentiveMatcher. |
|
| The address of the newly created IncentiveMatcher contract. |
incentiveMatchers
This function retrieves a list of existing IncentiveMatcher contracts.
Parameters
Name | Type | Description |
---|---|---|
|
| The starting index of the list to retrieve. |
|
| The ending index of the list to retrieve. |
Returns
Name | Type | Description |
---|---|---|
|
| An array of IncentiveMatcher contracts within the specified range. |
incentiveMatchersLength
This function returns the total number of existing IncentiveMatcher contracts.
incentiveMatcherAddress
This function retrieves the address of the IncentiveMatcher contract associated with a given veToken.
Parameters
Name | Type | Description |
---|---|---|
|
| The voting escrow token for which to retrieve the corresponding IncentiveMatcher. |
Returns
Name | Type | Description |
---|---|---|
|
| The address of the IncentiveMatcher contract associated with the veToken. |
Errors
VotingEscrowTokenDoesNotExists
Structs
IncentiveMatcherParameters
Last updated