RewardSplitterFactory
Inherits: IRewardSplitterFactory
Author: StakeWise
Factory for deploying the RewardSplitter contract
State Variables
implementation
The address of the RewardSplitter implementation contract used for proxy creation
address public immutable override implementation;
Functions
constructor
Constructor
constructor(address _implementation);
Parameters
Name | Type | Description |
---|---|---|
_implementation | address | The implementation address of RewardSplitter |
createRewardSplitter
Creates RewardSplitter contract proxy
function createRewardSplitter(address vault) external override returns (address rewardSplitter);
Parameters
Name | Type | Description |
---|---|---|
vault | address | The address of the vault to which the RewardSplitter will be connected |
Returns
Name | Type | Description |
---|---|---|
rewardSplitter | address | The address of the created RewardSplitter contract |