IMaverickV2RewardFactory
Functions
createRewardsContract
This function creates a new MaverickV2Reward contract associated with a specific stake token contract and set of reward and voting escrow tokens.
Parameters
Name | Type | Description |
---|---|---|
|
| Token to be staked in reward contract; e.g. a boosted position contract. |
|
| An array of IERC20 token addresses representing the available reward tokens. |
|
| An array of IMaverickV2VotingEscrow contract addresses representing the associated veTokens for boosting. |
Returns
Name | Type | Description |
---|---|---|
|
| The newly created IMaverickV2Reward contract. |
boostedPositionFactory
This function retrieves the address of the MaverickV2BoostedPositionFactory contract.
Returns
Name | Type | Description |
---|---|---|
|
| factory The address of the IMaverickV2BoostedPositionFactory contract. |
votingEscrowFactory
This function retrieves the address of the MaverickV2VotingEscrowFactory contract.
Returns
Name | Type | Description |
---|---|---|
|
| factory The address of the IMaverickV2VotingEscrowFactory contract. |
isFactoryContract
This function checks if a provided IMaverickV2Reward contract is a valid contract created by this factory.
Parameters
Name | Type | Description |
---|---|---|
|
| The IMaverickV2Reward contract to check. |
Returns
Name | Type | Description |
---|---|---|
|
| isFactoryContract True if the contract is a valid factory-created reward contract, False otherwise. |
rewardsForStakeToken
This function retrieves a list of all MaverickV2Reward contracts associated with a specific staking token contract within a specified range.
Parameters
Name | Type | Description |
---|---|---|
|
| Lookup token. |
|
| The starting index of the list to retrieve. |
|
| The ending index of the list to retrieve. |
Returns
Name | Type | Description |
---|---|---|
|
| An array of IMaverickV2Reward contracts associated with the BoostedPosition within the specified range. |
rewards
This function retrieves a list of all MaverickV2Reward contracts within a specified range.
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 IMaverickV2Reward contracts within the specified range. |
boostedPositionRewards
This function retrieves a list of all MaverickV2Reward contracts within a specified range that have a staking token that is a boosted position from the maverick boosted position contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The starting index of the list to retrieve. |
|
| The ending index of the list to retrieve. |
Returns
Name | Type | Description |
---|---|---|
|
| rewardsContract An array of IMaverickV2Reward contracts within the specified range. |
nonBoostedPositionRewards
This function retrieves a list of all MaverickV2Reward contracts within a specified range that have a staking token that is not a boosted position from the maverick boosted position contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The starting index of the list to retrieve. |
|
| The ending index of the list to retrieve. |
Returns
Name | Type | Description |
---|---|---|
|
| rewardsContract An array of IMaverickV2Reward contracts within the specified range. |
Errors
RewardFactoryNotFactoryBoostedPosition
RewardFactoryTooManyRewardTokens
RewardFactoryRewardAndVeLengthsAreNotEqual
RewardFactoryInvalidVeBaseTokenPair
Last updated