factory The address of the IMaverickV2BoostedPositionFactory contract.
votingEscrowFactory
This function retrieves the address of the MaverickV2VotingEscrowFactory contract.
Returns
Name
Type
Description
<none>
IMaverickV2VotingEscrowFactory
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
reward
IMaverickV2Reward
The IMaverickV2Reward contract to check.
Returns
Name
Type
Description
<none>
bool
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
stakeToken
IERC20
Lookup token.
startIndex
uint256
The starting index of the list to retrieve.
endIndex
uint256
The ending index of the list to retrieve.
Returns
Name
Type
Description
rewardsContract
IMaverickV2Reward[]
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
startIndex
uint256
The starting index of the list to retrieve.
endIndex
uint256
The ending index of the list to retrieve.
Returns
Name
Type
Description
rewardsContract
IMaverickV2Reward[]
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
startIndex
uint256
The starting index of the list to retrieve.
endIndex
uint256
The ending index of the list to retrieve.
Returns
Name
Type
Description
<none>
IMaverickV2Reward[]
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
startIndex
uint256
The starting index of the list to retrieve.
endIndex
uint256
The ending index of the list to retrieve.
Returns
Name
Type
Description
<none>
IMaverickV2Reward[]
rewardsContract An array of IMaverickV2Reward contracts within the specified range.