MaverickV2RewardFactory
Last updated
Last updated
Inherits:
Reward contract factory that facilitates rewarding stakers in BoostedPositions.
This function retrieves the address of the MaverickV2BoostedPositionFactory contract.
This function retrieves the address of the MaverickV2VotingEscrowFactory contract.
This function checks if a provided IMaverickV2Reward contract is a valid contract created by this factory.
This function creates a new MaverickV2Reward contract associated with a specific stake token contract and set of reward and voting escrow tokens.
Parameters
stakeToken
IERC20
Token to be staked in reward contract; e.g. a boosted position contract.
rewardTokens
IERC20[]
An array of IERC20 token addresses representing the available reward tokens.
veTokens
IMaverickV2VotingEscrow[]
An array of IMaverickV2VotingEscrow contract addresses representing the associated veTokens for boosting.
Returns
rewardsContract
IMaverickV2Reward
The newly created IMaverickV2Reward contract.
This function retrieves a list of all MaverickV2Reward contracts associated with a specific staking token contract within a specified range.
Parameters
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
<none>
IMaverickV2Reward[]
rewardsContract An array of IMaverickV2Reward contracts associated with the BoostedPosition within the specified range.
This function retrieves a list of all MaverickV2Reward contracts within a specified range.
Parameters
startIndex
uint256
The starting index of the list to retrieve.
endIndex
uint256
The ending index of the list to retrieve.
Returns
<none>
IMaverickV2Reward[]
rewardsContract An array of IMaverickV2Reward contracts within the specified range.